This file is indexed.

/usr/lib/python3/dist-packages/hl7/compat.py is in python3-hl7 0.3.4-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
13
14
15
16
17
18
19
20
21
22
"""Python 2/3 Compatibility Helper

Inspired by:

* https://docs.djangoproject.com/en/dev/topics/python3/
* http://lucumr.pocoo.org/2011/1/22/forwards-compatible-python/
* http://python-future.org/index.html
* http://docs.python.org/3.3/howto/pyporting.html

"""
import six


def python_2_unicode_compatible(cls):
    """
    Class decorator that provides appropriate Python 2 __unicode__ and __str__
    based upon Python 3' __str__.
    """
    if six.PY2:
        cls.__unicode__ = cls.__str__
        cls.__str__ = lambda self: self.__unicode__().encode('utf-8')
    return cls