summaryrefslogtreecommitdiff
path: root/cherrypy/lib/httputil.py
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2009-06-15 00:17:11 +0000
committerRobert Brewer <fumanchu@aminus.org>2009-06-15 00:17:11 +0000
commit772dcd6f1808013322585c426186853020266cc4 (patch)
treee480f83e9d91a93c1f8c28df1ca85b42deadae6b /cherrypy/lib/httputil.py
parentffdf13c8217f3a785fe8768697b3e3da4b6ff9cb (diff)
downloadcherrypy-git-772dcd6f1808013322585c426186853020266cc4.tar.gz
Meh. Not much use for py3util now.
Diffstat (limited to 'cherrypy/lib/httputil.py')
-rw-r--r--cherrypy/lib/httputil.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cherrypy/lib/httputil.py b/cherrypy/lib/httputil.py
index a6039add..b16c6b60 100644
--- a/cherrypy/lib/httputil.py
+++ b/cherrypy/lib/httputil.py
@@ -19,7 +19,6 @@ response_codes[503] = ('Service Unavailable',
'request due to a temporary overloading or '
'maintenance of the server.')
-from cherrypy.py3util import sorted, reversed
import re
import urllib
@@ -195,8 +194,9 @@ def header_elements(fieldname, fieldvalue):
else:
hv = HeaderElement.from_str(element)
result.append(hv)
-
- return list(reversed(sorted(result)))
+ result.sort()
+ result.reverse()
+ return result
def decode_TEXT(value):
"""Decode RFC-2047 TEXT (e.g. "=?utf-8?q?f=C3=BCr?=" -> u"f\xfcr")."""