view roundup/anypy/urllib_.py @ 5606:5fc476d4e34c

Merge REST API changes
author Ralf Schlatterbeck <rsc@runtux.com>
date Wed, 30 Jan 2019 18:11:02 +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/