blob: deee3c5243725954fbe411c185346b7041fe737d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import sys
PY2 = sys.version_info[0] == 2
if PY2:
string_types = basestring,
from urllib import quote_plus, urlencode
from urlparse import urlparse
from itertools import imap as map
else:
string_types = str, bytes
from urllib.parse import quote_plus, urlencode, urlparse
map = map
|