view roundup/anypy/urllib_.py @ 5932:df279b4e34a5

Run travis on 3.8 now that it's released.
author John Rouillard <rouilj@ieee.org>
date Sat, 19 Oct 2019 07:45:36 -0400
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/