From dbf9634b1b8ae450cc86783ed1ce6fe03e46d58e Mon Sep 17 00:00:00 2001
From: Matt Clay <matt@mystile.com>
Date: Tue, 19 Sep 2017 00:45:35 -0700
Subject: [PATCH] Enable more pylint rules and fix reported issues. (#30543)

* Enable pylint invalid-encoded-data test.
* Enable pylint anomalous-unicode-escape-in-string test.
---
 test/sanity/pylint/disable.txt           | 2 --
 test/units/plugins/action/test_action.py | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/test/sanity/pylint/disable.txt b/test/sanity/pylint/disable.txt
index 5e525cb3ab3..c0142960074 100644
--- a/test/sanity/pylint/disable.txt
+++ b/test/sanity/pylint/disable.txt
@@ -1,7 +1,6 @@
 abstract-method
 access-member-before-definition
 anomalous-backslash-in-string
-anomalous-unicode-escape-in-string
 arguments-differ
 assignment-from-no-return
 attribute-defined-outside-init
@@ -29,7 +28,6 @@ global-variable-not-assigned
 global-variable-undefined
 import-error
 import-self
-invalid-encoded-data
 invalid-name
 line-too-long
 locally-disabled
diff --git a/test/units/plugins/action/test_action.py b/test/units/plugins/action/test_action.py
index 2d542d1e2dc..788401c33d0 100644
--- a/test/units/plugins/action/test_action.py
+++ b/test/units/plugins/action/test_action.py
@@ -37,7 +37,7 @@ from ansible.template import Templar
 from units.mock.loader import DictDataLoader
 
 
-python_module_replacers = b"""
+python_module_replacers = br"""
 #!/usr/bin/python
 
 #ANSIBLE_VERSION = "<<ANSIBLE_VERSION>>"