From b5d4e408830caeef86d4c241ac03a6e8781ef189 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Mon, 15 Feb 2021 10:09:53 -0800 Subject: [PATCH] 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 --- gitlab/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gitlab/__init__.py b/gitlab/__init__.py index a9cbf8901..c1d86ebf7 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -383,10 +383,7 @@ def _set_auth_info(self): def enable_debug(self): import logging - try: - from http.client import HTTPConnection # noqa - except ImportError: - from httplib import HTTPConnection # noqa + from http.client import HTTPConnection # noqa HTTPConnection.debuglevel = 1 logging.basicConfig()