/usr/lib/python2.7/dist-packages/social/p3.py is in python-social-auth 0.2.13-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 18 19 20 | # Python3 support, keep import hacks here
import six
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
# Placate pyflakes
parse_qs, urlparse, urlunparse, quote, urlsplit, urlencode, unquote, StringIO
|