@@ -32,7 +32,6 @@ def make_urllib3_override(HTTPConnectionPool, HTTPSConnectionPool,
32
32
33
33
class HTTP_WSGIInterceptor (WSGI_HTTPConnection , HTTPConnection ):
34
34
def __init__ (self , * args , ** kwargs ):
35
- print (f"http pre: { args } ::: { kwargs } " )
36
35
for kw in HTTP_KEYWORD_POPS :
37
36
kwargs .pop (kw , None )
38
37
WSGI_HTTPConnection .__init__ (self , * args , ** kwargs )
@@ -42,19 +41,14 @@ class HTTPS_WSGIInterceptor(WSGI_HTTPSConnection, HTTPSConnection):
42
41
is_verified = True
43
42
44
43
def __init__ (self , * args , ** kwargs ):
45
- print (f"https pre: { args } ::: { kwargs } " )
44
+ print (f"{ args } :::{ kwargs } " )
46
45
for kw in HTTPS_KEYWORD_POPS :
47
46
kwargs .pop (kw , None )
48
47
if sys .version_info > (3 , 12 ):
49
48
kwargs .pop ('key_file' , None )
50
49
kwargs .pop ('cert_file' , None )
51
- print (f"https post: { args } ::: { kwargs } " )
52
- host = kwargs .pop ('host' )
53
- port = kwargs .pop ('port' )
54
- WSGI_HTTPSConnection .__init__ (self , host , port , * args , ** kwargs )
55
- print ("after wsgi" )
50
+ WSGI_HTTPSConnection .__init__ (self , * args , ** kwargs )
56
51
HTTPSConnection .__init__ (self , * args , ** kwargs )
57
- print ("after https" )
58
52
59
53
def install ():
60
54
if 'http_proxy' in os .environ or 'https_proxy' in os .environ :
0 commit comments