Created
June 28, 2011 23:29
-
-
Save gorakhargosh/1052499 to your computer and use it in GitHub Desktop.
This is the state of urlparse in Python code.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
# Python 3. | |
from urllib.parse import urlparse, urlunparse, parse_qs, quote, unquote_plus | |
except ImportError: | |
# Python 2.5+ | |
from urlparse import urlparse, urlunparse | |
from urllib import quote, unquote_plus | |
try: | |
# Python 2.6+ | |
from urlparse import parse_qs | |
except ImportError: | |
from cgi import parse_qs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment