Mercurial > p > roundup > code
view roundup/anypy/urllib_.py @ 6376:4e48a6a40bfe
Install roundup.test with setup.py
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Wed, 07 Apr 2021 15:18:25 +0200 |
| parents | 7b194e35d332 |
| children | 07ce4e4110f5 |
line wrap: on
line source
try: # Python 3+ from urllib.parse import quote, unquote, urlencode, urlparse, parse_qs, \ urlunparse from urllib.request import urlopen except ImportError: # Python 2.5-2.7 from urllib import quote, unquote, urlencode from urllib2 import urlopen from urlparse import urlparse, parse_qs, urlunparse
