This file is indexed.

/usr/lib/python3/dist-packages/xhtml2pdf/config/httpconfig.py is in python3-xhtml2pdf 0.2.1-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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
'''
Created on 1 dic. 2017

@author: luisza
'''

import ssl


class HttpConfig(dict):
    """
    Configuration settings for httplib
    
    See 
    - python2 : https://docs.python.org/2/library/httplib.html#httplib.HTTPSConnection
    - python3 : https://docs.python.org/3.4/library/http.client.html#http.client.HTTPSConnection
    
    available settings 
    
    - http_key_file
    - http_cert_file
    - http_source_address
    - http_timeout
    
    """
      
    def save_keys(self, name, value):
        if name=='nosslcheck':
            self['context']=ssl._create_unverified_context()
        else:
            self[name]=value
    
    def is_http_config(self, name, value):
        if name.startswith('--'):
            name=name[2:]
        elif name.startswith('-'):
            name=name[1:]
            
        if 'http_' in name:
            name=name.replace("http_", '')
            self.save_keys(name, value)
            return True
        return False
    
    def __repr__(self):
        dev=''
        for key, value in self.items():
            dev+="%r = %r, "%(key, value)
        return dev
    
    
httpConfig=HttpConfig()