summaryrefslogtreecommitdiff
path: root/cherrypy/_cpcompat.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-07-09 05:08:38 -0400
committerJason R. Coombs <jaraco@jaraco.com>2017-07-09 05:08:38 -0400
commit405245006e18d258794e65e12f03f7d2d588d0ca (patch)
tree79e86abbb46206933ca99a1b88b689475449a222 /cherrypy/_cpcompat.py
parent04cd9c3b0a4ab2abb805d71ec7d4b7fd3135e30d (diff)
downloadcherrypy-git-405245006e18d258794e65e12f03f7d2d588d0ca.tar.gz
Remove 'sorted' and 'reversed' from _cp_compat
Diffstat (limited to 'cherrypy/_cpcompat.py')
-rw-r--r--cherrypy/_cpcompat.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/cherrypy/_cpcompat.py b/cherrypy/_cpcompat.py
index 3b30c01f..b379d04c 100644
--- a/cherrypy/_cpcompat.py
+++ b/cherrypy/_cpcompat.py
@@ -115,23 +115,6 @@ def base64_decode(n, encoding='ISO-8859-1'):
try:
- sorted = sorted
-except NameError:
- def sorted(i):
- i = i[:]
- i.sort()
- return i
-
-try:
- reversed = reversed
-except NameError:
- def reversed(x):
- i = len(x)
- while i > 0:
- i -= 1
- yield x[i]
-
-try:
# Python 3
from urllib.parse import urljoin, urlencode
from urllib.parse import quote, quote_plus