Fix pylint warnings

This commit is contained in:
Roman Zeyde
2019-09-26 08:55:10 +03:00
parent b75cf74976
commit ab6892f42f
4 changed files with 4 additions and 7 deletions

View File

@@ -242,7 +242,7 @@ def which(cmd):
from shutil import which as _which
except ImportError:
# For Python 2
from backports.shutil_which import which as _which # pylint: disable=relative-import
from backports.shutil_which import which as _which
full_path = _which(cmd)
if full_path is None:
raise OSError('Cannot find {!r} in $PATH'.format(cmd))