/usr/lib/python2.7/dist-packages/aws_xray_sdk/core/utils/compat.py is in python-aws-xray-sdk 0.95-1.
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 sys
PY2 = sys.version_info < (3,)
PY35 = sys.version_info >= (3, 5)
if PY2:
annotation_value_types = (int, long, float, bool, str) # noqa: F821
string_types = basestring # noqa: F821
else:
annotation_value_types = (int, float, bool, str)
string_types = str
|