mirror of
https://github.com/kennethreitz-archive/github2.git
synced 2026-06-05 15:40:19 +00:00
For Python2.5 compatibility, fall back to cgi.parse_qs if urlparse.parse_qs is missing.
This commit is contained in:
+5
-1
@@ -1,7 +1,11 @@
|
||||
import sys
|
||||
import httplib
|
||||
import simplejson
|
||||
from urlparse import urlparse, parse_qs, urlunparse
|
||||
from urlparse import urlparse, urlunparse
|
||||
try:
|
||||
from urlparse import parse_qs
|
||||
except ImportError:
|
||||
from cgi import parse_qs
|
||||
from urllib import urlencode
|
||||
|
||||
GITHUB_URL = "http://github.com"
|
||||
|
||||
Reference in New Issue
Block a user