Fixed linter again

pull/155/head
Ashley Whetter 6 years ago
parent fb8892ccad
commit 007ef746f4

@ -11,7 +11,8 @@ import astroid.nodes
if sys.version_info < (3,): if sys.version_info < (3,):
_EXCEPTIONS_MODULE = "exceptions" _EXCEPTIONS_MODULE = "exceptions"
_STRING_TYPES = (str, unicode) # getattr to keep linter happy
_STRING_TYPES = getattr(builtins, 'basestring')
else: else:
_EXCEPTIONS_MODULE = "builtins" _EXCEPTIONS_MODULE = "builtins"
_STRING_TYPES = str _STRING_TYPES = str

Loading…
Cancel
Save