Skip to content

Instantly share code, notes, and snippets.

@maxp
Created August 27, 2009 13:39
Show Gist options
  • Save maxp/176287 to your computer and use it in GitHub Desktop.
Save maxp/176287 to your computer and use it in GitHub Desktop.
# make query string
return '?' + '&'.join([u'%s=%s' % (urllib.quote(str(k)), urllib.quote(str(v))) for k, v in p.items()]).replace(' ', '%20')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment