noqa: undefined name 'memoryview' in Python 2.6

This commit is contained in:
cclauss 2018-01-25 08:21:56 +01:00 committed by GitHub
parent 2f7a1d4277
commit c05225f5dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ except NameError: # Python 3
string_types = (str, )
if not PY2K:
buffer = memoryview
buffer = memoryview # noqa: F821 undefined name 'memoryview' in Python 2.6
filter, map, zip = filter, map, zip
iteritems = lambda dikt: iter(dikt.items()) # noqa: E731
from functools import reduce