This file is indexed.

/usr/lib/python3/dist-packages/subliminal/compat.py is in python3-subliminal 0.7.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
# -*- coding: utf-8 -*-
import sys
import socket


if sys.version_info[0] == 2:
    from xmlrpclib import ServerProxy, Transport
    from httplib import HTTPConnection
elif sys.version_info[0] == 3:
    from xmlrpc.client import ServerProxy, Transport
    from http.client import HTTPConnection


class TimeoutTransport(Transport, object):
    def __init__(self, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, *args, **kwargs):
        super(TimeoutTransport, self).__init__(*args, **kwargs)
        self.timeout = timeout

    def make_connection(self, host):
        h = HTTPConnection(host, timeout=self.timeout)
        return h