Source

wheezy.html / src / wheezy / html / comp.py

Full commit

""" ``comp`` module.
"""

import sys


PY3 = sys.version_info[0] >= 3


if PY3:  # pragma: nocover
    str_type = str
    xrange = range
else:  # pragma: nocover
    str_type = unicode
    xrange = xrange


if PY3:  # pragma: nocover
    iteritems = lambda d: d.items()
else:  # pragma: nocover
    iteritems = lambda d: d.iteritems()