/usr/lib/python3/dist-packages/behave/compat/collections.py is in python3-behave 1.2.5-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 19 20 | # -*- coding: utf-8 -*-
"""
Compatibility of :module:`collections` between different Python versions.
"""
import warnings
try:
# -- SINCE: Python2.7
from collections import OrderedDict
except ImportError: # pragma: no cover
try:
# -- BACK-PORTED FOR: Python 2.4 .. 2.6
from ordereddict import OrderedDict
except ImportError:
message = "collections.OrderedDict is missing: Install 'ordereddict'."
warnings.warn(message)
# -- BACKWARD-COMPATIBLE: Better than nothing (for behave use case).
OrderedDict = dict
|