This file is indexed.

/usr/share/pyshared/asterisk/compat.py is in python-pyst 0.6.50-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
23
24
25
26
27
#!/usr/bin/python

"""
    Compatibility of different python versions.
    Goal for now is to run on 2.6, 2.7 and 3.3 onwards.
    We skip versions prior to 2.6 and 3.1, 3.2, see Armin Ronachers blog
    post at http://lucumr.pocoo.org/2013/5/21/porting-to-python-3-redux/
"""

import sys
PY2 = sys.version_info[0] == 2

# Queue in python3 has moved:
try:
    from Queue import Queue
except ImportError:
    from queue import Queue

# String types, stolen from Armin Ronacher above
if not PY2:
    text_type = str
    string_types = (str,)
    unichr = chr
else:
    text_type = unicode
    string_types = (str, unicode)
    unichr = unichr