/usr/lib/python3/dist-packages/jsonpickle/compat.py is in python3-jsonpickle 0.9.5-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 47 48 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals
import sys
__all__ = ('bytes', 'set', 'unicode', 'long', 'unichr', 'queue')
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
numeric_types = (int, long)
except NameError:
long = int
numeric_types = (int,)
try:
unichr = unichr
except NameError:
unichr = chr
try:
# Python3
import queue
except ImportError:
# Python2
import Queue as queue
|