Skip to content

Commit

Permalink
Disable pylint import checks for distutils
Browse files Browse the repository at this point in the history
Pylint complains about distutils import in virtualenv (tox):
pylint-dev/pylint#73
```
E: 22, 0: No name 'version' in module 'distutils' (no-name-in-module)
E: 22, 0: Unable to import 'distutils.version.StrictVersion' (import-error)
```

Add inline pylint disable for `no-name-in-module` and
`import-error` checks as workaround for this issue.
  • Loading branch information
lukpueh committed Jan 8, 2018
1 parent a5b7f9a commit d6120b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion securesystemslib/gpg/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
import subprocess
import shlex
import re
from distutils.version import StrictVersion

from distutils.version import StrictVersion # pylint: disable=no-name-in-module,import-error

import cryptography.hazmat.backends as backends
import cryptography.hazmat.primitives.hashes as hashing
Expand Down

0 comments on commit d6120b8

Please sign in to comment.