Mercurial > p > roundup > code
view roundup/anypy/urllib_.py @ 5204:c8bf4e9912ed
convert classic template for csrf defense
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 18 Mar 2017 22:55:50 -0400 |
| parents | 894aa07be6cb |
| children | 88dbacd11cd1 |
line wrap: on
line source
try: # Python 3+ from urllib.parse import quote, urlencode, urlparse, parse_qs, urlunparse except: # Python 2.5-2.7 from urllib import quote, urlencode from urlparse import urlparse, parse_qs, urlunparse
