/usr/lib/python2.7/dist-packages/rasterio/compat.py is in python-rasterio 0.36.0-2build5.
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 | """Python 2-3 compatibility."""
import itertools
import sys
if sys.version_info[0] >= 3: # pragma: no cover
string_types = str,
text_type = str
integer_types = int,
zip_longest = itertools.zip_longest
import configparser
from urllib.parse import urlparse
from collections import UserDict
else: # pragma: no cover
string_types = basestring,
text_type = unicode
integer_types = int, long
zip_longest = itertools.izip_longest
import ConfigParser as configparser
from urlparse import urlparse
from UserDict import UserDict
|