Update compat.py

pull/378/head
cclauss 6 years ago committed by GitHub
parent c05225f5dc
commit 1655a445d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,7 +10,7 @@ except NameError: # Python 3
string_types = (str, )
if not PY2K:
buffer = memoryview # noqa: F821 undefined name 'memoryview' in Python 2.6
buffer = memoryview # noqa 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

Loading…
Cancel
Save