/usr/lib/python2.7/dist-packages/jsonpickle/compat.py is in python-jsonpickle 0.9.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 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | # -*- coding: utf-8 -*-
import sys
PY_MAJOR = sys.version_info[0]
PY_MINOR = sys.version_info[1]
PY2 = PY_MAJOR == 2
PY3 = PY_MAJOR == 3
PY32 = PY3 and PY_MINOR == 2
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
try:
# Python3
import queue
except ImportError:
# Python2
import Queue as queue
__all__ = ['bytes', 'set', 'unicode', 'long', 'unichr', 'queue']
|