Suppressed pylint relative-import and pycodestyle E402 in depends

This commit is contained in:
Dmitri Bogomolov 2019-04-24 14:40:25 +03:00
parent 61f9b2eaf7
commit cf36bc4551
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
1 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ and suggest how it may be installed
# flake8: noqa:E402
# pylint: disable=relative-import
import sys
@ -18,7 +19,7 @@ if not hasattr(sys, 'hexversion') or sys.hexversion < 0x20300F0:
import logging
import os
from distutils import version
from distutils import version # noqa:E402
from importlib import import_module
# We can now use logging so set up a simple configuration
@ -171,7 +172,7 @@ def try_import(module, log_extra=False):
def check_ripemd160():
"""Check availability of the RIPEMD160 hash function"""
from fallback import RIPEMD160Hash # pylint: disable=relative-import
from fallback import RIPEMD160Hash
except ImportError:
return False
return RIPEMD160Hash is not None