/usr/lib/python3/dist-packages/translationstring/compat.py is in python3-translationstring 1.3-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 | import sys
PY3 = sys.version_info[0] == 3
if PY3: # pragma: no cover
string_types = (str,)
text_type = str
else: # pragma: no cover
string_types = (basestring,)
text_type = unicode
if PY3: # pragma: no cover
def u(s):
return s
else: # pragma: no cover
def u(s):
return unicode(s, 'unicode_escape')
|