summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorJohn L. Villalovos <debian.org@sodarock.com>2021-02-15 10:09:53 -0800
committerJohn L. Villalovos <debian.org@sodarock.com>2021-02-15 10:17:58 -0800
commitb5d4e408830caeef86d4c241ac03a6e8781ef189 (patch)
tree86e889749db41b1fd6b13b158406735c1e4e1b96 /gitlab
parent9fcd9623fd8c89347202cd5a2e90e68ee2780f41 (diff)
downloadgitlab-b5d4e408830caeef86d4c241ac03a6e8781ef189.tar.gz
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
Diffstat (limited to 'gitlab')
-rw-r--r--gitlab/__init__.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index a9cbf89..c1d86eb 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -383,10 +383,7 @@ class Gitlab(object):
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()