From 8e6fe5d6a100b002b682811d04c72aaab2d485b8 Mon Sep 17 00:00:00 2001 From: Jakub Frejlach Date: Tue, 21 Nov 2023 16:51:27 +0100 Subject: [PATCH] Remove python2 http support --- griffon/__init__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/griffon/__init__.py b/griffon/__init__.py index fff385a..476834e 100644 --- a/griffon/__init__.py +++ b/griffon/__init__.py @@ -51,11 +51,8 @@ def config_logging(level="INFO"): # if set to 'DEBUG' then we want all the http conversation if level == "DEBUG": - try: - import http.client as http_client - except ImportError: - # Python 2 - import httplib as http_client + import http.client as http_client + http_client.HTTPConnection.debuglevel = 1 message_format = "%(asctime)s %(name)s %(levelname)s %(message)s"