@@ -175,10 +175,7 @@ def GET(self, url, headers="", username="", password="", verify=True, http_proxy
175175 parsed_headers ["User-Agent" ] = "Shuffle Automation"
176176 verify = self .checkverify (verify )
177177
178- proxies = None
179- if http_proxy or https_proxy :
180- proxies = {}
181-
178+ proxies = {}
182179 if http_proxy :
183180 proxies ["http" ] = http_proxy
184181 if https_proxy :
@@ -216,9 +213,7 @@ def POST(self, url, headers="", body="", username="", password="", verify=True,
216213 parsed_headers ["User-Agent" ] = "Shuffle Automation"
217214 verify = self .checkverify (verify )
218215 body = self .checkbody (body )
219- proxies = None
220- if http_proxy or https_proxy :
221- proxies = {}
216+ proxies = {}
222217 if http_proxy :
223218 proxies ["http" ] = http_proxy
224219 if https_proxy :
@@ -256,9 +251,7 @@ def PUT(self, url, headers="", body="", username="", password="", verify=True, h
256251 parsed_headers ["User-Agent" ] = "Shuffle Automation"
257252 verify = self .checkverify (verify )
258253 body = self .checkbody (body )
259- proxies = None
260- if http_proxy or https_proxy :
261- proxies = {}
254+ proxies = {}
262255 if http_proxy :
263256 proxies ["http" ] = http_proxy
264257 if https_proxy :
@@ -297,9 +290,7 @@ def PATCH(self, url, headers="", body="", username="", password="", verify=True,
297290 parsed_headers ["User-Agent" ] = "Shuffle Automation"
298291 verify = self .checkverify (verify )
299292 body = self .checkbody (body )
300- proxies = None
301- if http_proxy or https_proxy :
302- proxies = {}
293+ proxies = {}
303294 if http_proxy :
304295 proxies ["http" ] = http_proxy
305296 if https_proxy :
@@ -337,9 +328,7 @@ def DELETE(self, url, headers="", body="", username="", password="", verify=True
337328 parsed_headers ["User-Agent" ] = "Shuffle Automation"
338329 verify = self .checkverify (verify )
339330 body = self .checkbody (body )
340- proxies = None
341- if http_proxy or https_proxy :
342- proxies = {}
331+ proxies = {}
343332 if http_proxy :
344333 proxies ["http" ] = http_proxy
345334 if https_proxy :
@@ -377,9 +366,7 @@ def HEAD(self, url, headers="", body="", username="", password="", verify=True,
377366 parsed_headers ["User-Agent" ] = "Shuffle Automation"
378367 verify = self .checkverify (verify )
379368 body = self .checkbody (body )
380- proxies = None
381- if http_proxy or https_proxy :
382- proxies = {}
369+ proxies = {}
383370 if http_proxy :
384371 proxies ["http" ] = http_proxy
385372 if https_proxy :
@@ -417,9 +404,7 @@ def OPTIONS(self, url, headers="", body="", username="", password="", verify=Tru
417404 parsed_headers ["User-Agent" ] = "Shuffle Automation"
418405 verify = self .checkverify (verify )
419406 body = self .checkbody (body )
420- proxies = None
421- if http_proxy or https_proxy :
422- proxies = {}
407+ proxies = {}
423408 if http_proxy :
424409 proxies ["http" ] = http_proxy
425410 if https_proxy :
0 commit comments