Diff
Differences From Artifact [66a57d4e67]:
- File compat2and3.py — part of check-in [334e951b04] at 2015-05-06 17:06:25 on branch trunk — Fix urlencode references to urllib.quote. (user: mario, size: 1595) [annotate] [blame] [check-ins using]
To Artifact [e60cd1b086]:
- File compat2and3.py — part of check-in [049c5a6edd] at 2016-11-06 18:51:20 on branch trunk — Add unichr() function alias for Python3. (user: mario, size: 1612) [annotate] [blame] [check-ins using]
| ︙ | |||
44 45 46 47 48 49 50 51 52 53 54 55 56 57 | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | + |
# version tags
PY2 = 0
PY3 = 1
# basic functions
xrange = range
unicode = str
unichr = chr
# urllib modules
import urllib.request as urllib
import urllib.request as urllib2
from urllib.parse import quote_plus as urlencode, unquote as urldecode
import urllib.parse as urlparse
from http import cookiejar as cookielib
|
| ︙ |