summaryrefslogtreecommitdiff
path: root/webob/acceptparse.py
diff options
context:
space:
mode:
authorIan Bicking <ianb@colorstudy.com>2008-05-05 19:17:00 +0000
committerIan Bicking <ianb@colorstudy.com>2008-05-05 19:17:00 +0000
commitb602bd2be58f7cee0f56b831a0419776c829dd5b (patch)
tree482d261698a4315ac4826ef94d16eb0b1ca8f993 /webob/acceptparse.py
parenta88bf127eb1886fe97e286133258fd8991af9286 (diff)
downloadwebob-b602bd2be58f7cee0f56b831a0419776c829dd5b.tar.gz
added in sorted for python2.3 compatibility, from Bryan O'Sullivan
Diffstat (limited to 'webob/acceptparse.py')
-rw-r--r--webob/acceptparse.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/webob/acceptparse.py b/webob/acceptparse.py
index b9cb20c..7d04f2f 100644
--- a/webob/acceptparse.py
+++ b/webob/acceptparse.py
@@ -10,6 +10,10 @@ exists, but this ignores them.
"""
import re
+try:
+ sorted
+except NameError:
+ from webob.compat import sorted
part_re = re.compile(
r',\s*([^\s;,\n]+)(?:[^,]*?;\s*q=([0-9.]*))?')