Source code for beam_nuggets.compat

try:
    dict.iteritems
except AttributeError:
    # Python 3
    def iteritems(d):
        return iter(d.items())
else:
    # Python 2
[docs] def iteritems(d): return d.iteritems()