/usr/lib/python2.7/dist-packages/xattr/compat.py is in python-xattr 0.9.2-0ubuntu1.
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 | """Python 3 compatibility shims
"""
import sys
if sys.version_info[0] < 3:
integer_types = (int, long)
text_type = unicode
binary_type = str
else:
integer_types = (int,)
text_type = str
binary_type = bytes
|