bazarr/libs/flask_debugtoolbar/compat.py

10 lines
141 B
Python

import sys
PY2 = sys.version_info[0] == 2
if PY2:
iteritems = lambda d: d.iteritems()
else:
iteritems = lambda d: iter(d.items())