Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

get parse_qs from cgi if not in urlparse to support python 2.5

this method was moved to urlparse in python 2.6 -
see http://bugs.python.org/issue600362
  • Loading branch information...
commit 6a9fe32b033010b63a53c307c10f84d7d5531fc1 1 parent 7179847
bburns authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 httpd.py
View
7 httpd.py
@@ -32,6 +32,13 @@
except ImportError:
import simplejson as json
+# support python 2.5 (parse_qs was moved from cgi to urlparse in python 2.6)
+try:
+ urlparse.parse_qs
+except AttributeError:
+ urlparse.parse_qs = cgi.parse_qs
+
+
class MongoServer(HTTPServer):
Please sign in to comment.
Something went wrong with that request. Please try again.