diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-08 21:31:47 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-08 21:31:47 -0400 |
commit | f4f27fae603a8beedf2a8f75cd9dcdda61ebf5a0 (patch) | |
tree | 54b93412edc990ea9a832f082e6041783fb8c3a7 /cherrypy/_cpcompat.py | |
parent | 459099b5f3b4c0422c66296da129c3c8b3e70b5e (diff) | |
download | cherrypy-git-f4f27fae603a8beedf2a8f75cd9dcdda61ebf5a0.tar.gz |
Replace iteritems with six usage.
Diffstat (limited to 'cherrypy/_cpcompat.py')
-rw-r--r-- | cherrypy/_cpcompat.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/cherrypy/_cpcompat.py b/cherrypy/_cpcompat.py index 1d9ed590..d3b7f6e9 100644 --- a/cherrypy/_cpcompat.py +++ b/cherrypy/_cpcompat.py @@ -146,16 +146,6 @@ except ImportError: from urllib2 import parse_http_list, parse_keqv_list # noqa try: - dict.iteritems - # Python 2 - iteritems = lambda d: d.iteritems() - copyitems = lambda d: d.items() -except AttributeError: - # Python 3 - iteritems = lambda d: d.items() - copyitems = lambda d: list(d.items()) - -try: dict.iterkeys # Python 2 iterkeys = lambda d: d.iterkeys() |