/usr/lib/python3/dist-packages/fiona/compat.py is in python3-fiona 1.7.10-1build1.
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 | import collections
from six.moves import UserDict
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
# Users can pass in objects that subclass a few different objects
# More specifically, rasterio has a CRS() class that subclasses UserDict()
# In Python 2 UserDict() is in its own module and does not subclass Mapping()
DICT_TYPES = (dict, collections.Mapping, UserDict)
|