Commits

Andriy Kornatskyy committed 7d3560c

Added iteritems compatibility function.

  • Participants
  • Parent commits 6af424e

Comments (0)

Files changed (1)

File src/wheezy/html/comp.py

+
+""" ``comp`` module.
+"""
+
+import sys
+
+
+PY3 = sys.version_info[0] >= 3
+
+
+if PY3:  # pragma: nocover
+    iteritems = lambda d: d.items()
+else:  # pragma: nocover
+    iteritems = lambda d: d.iteritems()