From 3d5c1411c05cce892f65ab59183258bdc1c05e06 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 24 Sep 2019 00:28:23 +0300 Subject: [PATCH] Fix PyLint for PY2 --- platformio/compat.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platformio/compat.py b/platformio/compat.py index 1359bdad..64d437a1 100644 --- a/platformio/compat.py +++ b/platformio/compat.py @@ -12,7 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -# pylint: disable=unused-import +# pylint: disable=unused-import, no-name-in-module, import-error, +# pylint: disable=no-member, undefined-variable import json import os @@ -31,7 +32,6 @@ def get_filesystem_encoding(): if PY2: import imp - # pylint: disable=undefined-variable string_types = (str, unicode) def is_bytes(x): @@ -84,7 +84,7 @@ if PY2: else: import importlib.util - from glob import escape as glob_escape # pylint: disable=no-name-in-module + from glob import escape as glob_escape string_types = (str,)