Skip to content

Instantly share code, notes, and snippets.

@rikwatson
Created April 1, 2019 12:43
Show Gist options
  • Save rikwatson/ec46f0f528c19952206ce7482a57466a to your computer and use it in GitHub Desktop.
Save rikwatson/ec46f0f528c19952206ce7482a57466a to your computer and use it in GitHub Desktop.
Common code for V2 & v3
if sys.version_info[0] == 3:
# Python 3 imports.
from urllib.parse import urlparse, parse_qs
else:
# Python 2 imports.
from urlparse import urlparse, parse_qs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment