/usr/lib/python2.7/dist-packages/twilio/compat.py is in python-twilio 6.8.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # Those are not supported by the six library and needs to be done manually
try:
# python 3
from urllib.parse import urlencode, urlparse, urljoin, urlunparse
except ImportError:
# python 2 backward compatibility
# noinspection PyUnresolvedReferences
from urllib import urlencode
# noinspection PyUnresolvedReferences
from urlparse import urlparse, urljoin, urlunparse
try:
# python 2
from itertools import izip
except ImportError:
# python 3
izip = zip
|