Skip to content

Commit 07edafe

Browse files
authored
Merge pull request #1298 from JohnVillalovos/master
Remove Python 2 code
2 parents 9fcd962 + b5d4e40 commit 07edafe

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)