mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 02:27:13 +02:00
Fix PyLint for PY2
This commit is contained in:
@ -12,7 +12,8 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# 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 json
|
||||||
import os
|
import os
|
||||||
@ -31,7 +32,6 @@ def get_filesystem_encoding():
|
|||||||
if PY2:
|
if PY2:
|
||||||
import imp
|
import imp
|
||||||
|
|
||||||
# pylint: disable=undefined-variable
|
|
||||||
string_types = (str, unicode)
|
string_types = (str, unicode)
|
||||||
|
|
||||||
def is_bytes(x):
|
def is_bytes(x):
|
||||||
@ -84,7 +84,7 @@ if PY2:
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
import importlib.util
|
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,)
|
string_types = (str,)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user