summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorMax Wittig <max.wittig@siemens.com>2021-02-15 21:22:03 +0100
committerGitHub <noreply@github.com>2021-02-15 21:22:03 +0100
commit07edafe8b7ffa25e530cd24db35ab64a9b5a285f (patch)
tree86e889749db41b1fd6b13b158406735c1e4e1b96 /gitlab
parent9fcd9623fd8c89347202cd5a2e90e68ee2780f41 (diff)
parentb5d4e408830caeef86d4c241ac03a6e8781ef189 (diff)
downloadgitlab-07edafe8b7ffa25e530cd24db35ab64a9b5a285f.tar.gz
Merge pull request #1298 from JohnVillalovos/master
Remove Python 2 code
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()