Remove iter* utilities from py3compat and refactor uses
[pyelftools.git] / elftools / common / py3compat.py
index 336164ebd4a709ca041ac4336f5b8276a061baa6..9b508ab348f6911cbc881eb4493a862a65e92afe 100644 (file)
@@ -78,21 +78,3 @@ else:
 
     def path_to_posix(s):
         return posixpath.join(*os.path.split(s))
-
-
-def iterkeys(d):
-    """Return an iterator over the keys of a dictionary."""
-    return getattr(d, 'keys' if PY3 else 'iterkeys')()
-
-def itervalues(d):
-    """Return an iterator over the values of a dictionary."""
-    return getattr(d, 'values' if PY3 else 'itervalues')()
-
-def iteritems(d):
-    """Return an iterator over the items of a dictionary."""
-    return getattr(d, 'items' if PY3 else 'iteritems')()
-
-try:
-    from collections.abc import Mapping  # python >= 3.3
-except ImportError:
-    from collections import Mapping  # python < 3.3