fix(analyzer): remove outdated urllib3 workaround

This commit is contained in:
jo 2022-07-25 01:19:10 +02:00 committed by Kyle Robbertze
parent 04c0b11901
commit fc53636c37
1 changed files with 0 additions and 5 deletions

View File

@ -10,11 +10,6 @@ from urllib.parse import urlparse
import requests
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:
def __init__(self, method, url, data, api_key):