Source code for six_util

Instead of adding six as a dependency, this code was copied from the six implementation.
six is Copyright (c) 2010-2015 Benjamin Peterson
import sys

# TODO: Perhaps rename this to or something and add OS-specific hardware detection.

if sys.version_info[0] == 3:
    def iterkeys(d, **kw):
        return iter(d.keys(**kw))

    def iteritems(d, **kw):
        return iter(d.items(**kw))

    def itervalues(d, **kw):
        return iter(d.values(**kw))
[docs] def iterkeys(d, **kw): return iter(d.iterkeys(**kw))
[docs] def iteritems(d, **kw): return iter(d.iteritems(**kw))
[docs] def itervalues(d, **kw): return iter(d.itervalues(**kw))