Skip to content

Commit

Permalink
Pylint: enable import-error check
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBasti committed Jun 26, 2016
1 parent d7e0aef commit c56a276
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dns/entropy.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ def __init__(self, seed=None):
import hashlib
self.hash = hashlib.sha1()
self.hash_len = 20
except:
except ImportError:
try:
import sha
self.hash = sha.new()
self.hash_len = 20
except:
import md5
except ImportError:
import md5 # pylint: disable=import-error
self.hash = md5.new()
self.hash_len = 16
self.pool = bytearray(b'\0' * self.hash_len)
Expand Down
2 changes: 1 addition & 1 deletion dns/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
try:
import winreg as _winreg
except ImportError:
import _winreg
import _winreg # pylint: disable=import-error

class NXDOMAIN(dns.exception.DNSException):

Expand Down
1 change: 0 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ disable=
fixme,
getslice-method,
global-statement,
import-error,
invalid-name,
long-builtin,
missing-docstring,
Expand Down

0 comments on commit c56a276

Please sign in to comment.