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 22, 2023
1 parent ae83447 commit e961642
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 e961642

Please sign in to comment.