view roundup/anypy/urllib_.py @ 5470:e2baa4e6ed6d

handle words starting with unicode characters
author Christof Meerwald <cmeerw@cmeerw.org>
date Sat, 28 Jul 2018 22:39:24 +0100
parents 88dbacd11cd1
children 7b194e35d332
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:
    # Python 2.5-2.7
    from urllib import quote, unquote, urlencode
    from urllib2 import urlopen
    from urlparse import urlparse, parse_qs, urlunparse

Roundup Issue Tracker: http://roundup-tracker.org/