(d, use_custom=True)
Override the iteritems to work with multiple Python versions and the ini class.
Override the iteritems to work with multiple Python versions and the ini class.
Override the iteritems to work with multiple Python versions and the ini class .
def iteritems(d, use_custom=True):
    """Override the iteritems to work with multiple Python versions and the ini class."""
    if use_custom:
        try:
            return d._iteritems_override()
        except AttributeError:
            pass
    if PYTHON_VERSION < 3:
        return d.iteritems()
    else:
        return d.items()
def iteritems ( d , use_custom = True ) : if use_custom : try : return d . _iteritems_override ( ) except AttributeError : pass if PYTHON_VERSION < 3 : return d . iteritems ( ) else : return d . items ( )