Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Remove python2 http support
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubFrejlach committed Nov 21, 2023
1 parent 41eb1c1 commit 8e6fe5d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions griffon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8e6fe5d

Please sign in to comment.