Skip to content

Commit b5d4e40

Browse files
chore: remove Python 2 code
httplib is a Python 2 library. It was renamed to http.client in Python 3. https://docs.python.org/2.7/library/httplib.html
1 parent 9fcd962 commit b5d4e40

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

gitlab/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,7 @@ def _set_auth_info(self):
383383
def enable_debug(self):
384384
import logging
385385

386-
try:
387-
from http.client import HTTPConnection # noqa
388-
except ImportError:
389-
from httplib import HTTPConnection # noqa
386+
from http.client import HTTPConnection # noqa
390387

391388
HTTPConnection.debuglevel = 1
392389
logging.basicConfig()

0 commit comments

Comments
 (0)