/usr/lib/python2.7/dist-packages/jsonpickle/compat.py is in python-jsonpickle 0.6.1-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 21 22 23 24 25 26 27 28 29 30 31 32 | import sys
# True if we are running on Python 3.
PY3 = sys.version_info[0] == 3
PY32 = PY3 and sys.version_info[1] == 2
PY2 = not PY3
try:
bytes = bytes
except NameError:
bytes = str
try:
set = set
except NameError:
from sets import Set as set
set = set
try:
unicode = unicode
except NameError:
unicode = str
try:
long = long
except NameError:
long = int
try:
unichr = unichr
except NameError:
unichr = chr
|