Skip to content

Instantly share code, notes, and snippets.

@maxp
Created February 23, 2012 05:18
Show Gist options
  • Select an option

  • Save maxp/1890504 to your computer and use it in GitHub Desktop.

Select an option

Save maxp/1890504 to your computer and use it in GitHub Desktop.
'?' + '&'.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