/usr/lib/python3/dist-packages/picklefield/compat.py is in python3-django-picklefield 0.3.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 16 17 18 | # django 1.5 introduces force_text instead of force_unicode
try:
from django.utils.encoding import force_text
except ImportError:
from django.utils.encoding import force_unicode as force_text
# python 3.x does not have cPickle module
try:
from cPickle import loads, dumps # cpython 2.x
except ImportError:
from pickle import loads, dumps # cpython 3.x, other interpreters
# django 1.6 will deprecate django.utils.simple_json
try:
import json
except ImportError:
from django.utils import simplejson as json
|