diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-09 06:05:38 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-07-09 06:05:38 -0400 |
commit | 0d4c188827c80f92149110b63813f3027cbeec22 (patch) | |
tree | 3fd8aebf777a828e167e297dbf34636f29bf9a50 /cherrypy/_cpcompat.py | |
parent | 8beff4980702edd80b541d611cbf534efd7af783 (diff) | |
download | cherrypy-git-0d4c188827c80f92149110b63813f3027cbeec22.tar.gz |
Use next naturally as available on Python 2.6+
Diffstat (limited to 'cherrypy/_cpcompat.py')
-rw-r--r-- | cherrypy/_cpcompat.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cherrypy/_cpcompat.py b/cherrypy/_cpcompat.py index 29dccf23..bc880a75 100644 --- a/cherrypy/_cpcompat.py +++ b/cherrypy/_cpcompat.py @@ -177,13 +177,6 @@ try: except ImportError: from thread import get_ident as get_thread_ident # noqa -try: - # Python 3 - next = next -except NameError: - # Python 2 - def next(i): - return i.next() if sys.version_info >= (3, 3): Timer = threading.Timer |