From fc53636c371bb8a7833e70aebda3fa41cefe555a Mon Sep 17 00:00:00 2001 From: jo Date: Mon, 25 Jul 2022 01:19:10 +0200 Subject: [PATCH] fix(analyzer): remove outdated urllib3 workaround --- analyzer/libretime_analyzer/status_reporter.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/analyzer/libretime_analyzer/status_reporter.py b/analyzer/libretime_analyzer/status_reporter.py index 7a029f53b..034fb2351 100644 --- a/analyzer/libretime_analyzer/status_reporter.py +++ b/analyzer/libretime_analyzer/status_reporter.py @@ -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):