summaryrefslogtreecommitdiff
path: root/cherrypy/_cpcompat.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-07-09 06:05:38 -0400
committerJason R. Coombs <jaraco@jaraco.com>2017-07-09 06:05:38 -0400
commit0d4c188827c80f92149110b63813f3027cbeec22 (patch)
tree3fd8aebf777a828e167e297dbf34636f29bf9a50 /cherrypy/_cpcompat.py
parent8beff4980702edd80b541d611cbf534efd7af783 (diff)
downloadcherrypy-git-0d4c188827c80f92149110b63813f3027cbeec22.tar.gz
Use next naturally as available on Python 2.6+
Diffstat (limited to 'cherrypy/_cpcompat.py')
-rw-r--r--cherrypy/_cpcompat.py7
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