diff options
| author | Ian Bicking <ianb@colorstudy.com> | 2008-05-05 19:17:00 +0000 |
|---|---|---|
| committer | Ian Bicking <ianb@colorstudy.com> | 2008-05-05 19:17:00 +0000 |
| commit | b602bd2be58f7cee0f56b831a0419776c829dd5b (patch) | |
| tree | 482d261698a4315ac4826ef94d16eb0b1ca8f993 /webob/acceptparse.py | |
| parent | a88bf127eb1886fe97e286133258fd8991af9286 (diff) | |
| download | webob-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.py | 4 |
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.]*))?') |
