def _items(mappingorseq):
    if hasattr(mappingorseq, 'items'):
        return iteritems(mappingorseq)
    return mappingorseq
Wrapper for efficient iteration over mappings represented by dicts
dataset/ETHPy150Open GoogleCloudPlatform/appengine-flask-skeleton/lib/werkzeug/contrib/cache.py/_items