Skip to content

Commit

Permalink
Removes unneeded check. Ref #55
Browse files Browse the repository at this point in the history
  • Loading branch information
dsc committed Sep 20, 2024
1 parent 0a65904 commit f5f4d08
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions bunch/python3_compat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__all__ = ('u', 'iteritems', 'iterkeys', 'Mapping', 'Iterator', '_get_ident')
__all__ = ('u', 'Mapping', 'Iterator', '_get_ident')

import sys

Expand All @@ -14,14 +14,6 @@
def u(string):
return codecs.unicode_escape_decode(string)[0]

# dict.iteritems(), dict.iterkeys() is also incompatible
if _IS_PYTHON_3:
iteritems = dict.items
iterkeys = dict.keys
else:
iteritems = dict.iteritems
iterkeys = dict.iterkeys

# abstract collections moved
if _IS_PYTHON_3:
from collections.abc import Mapping, Iterator
Expand Down

0 comments on commit f5f4d08

Please sign in to comment.