/usr/lib/python2.7/dist-packages/social/p3.py is in python-social-auth 0.2.1-2.
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 | import six
# Python3 support, keep import hacks here
if six.PY3:
from urllib.parse import parse_qs, urlparse, urlunparse, quote, \
urlsplit, urlencode, unquote
from io import StringIO
else:
try:
from urlparse import parse_qs
except ImportError: # fall back for Python 2.5
from cgi import parse_qs
from urlparse import urlparse, urlunparse, urlsplit
from urllib import urlencode, unquote, quote
from StringIO import StringIO
|