fix(analyzer): remove outdated urllib3 workaround
This commit is contained in:
parent
04c0b11901
commit
fc53636c37
|
@ -10,11 +10,6 @@ from urllib.parse import urlparse
|
||||||
import requests
|
import requests
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
# Disable urllib3 warnings because these can cause a rare deadlock due to Python 2's crappy internal non-reentrant locking
|
|
||||||
# around POSIX stuff. See SAAS-714. The hasattr() is for compatibility with older versions of requests.
|
|
||||||
if hasattr(requests, "packages"):
|
|
||||||
requests.packages.urllib3.disable_warnings()
|
|
||||||
|
|
||||||
|
|
||||||
class PicklableHttpRequest:
|
class PicklableHttpRequest:
|
||||||
def __init__(self, method, url, data, api_key):
|
def __init__(self, method, url, data, api_key):
|
||||||
|
|
Loading…
Reference in New Issue