From ed7311c7561cb4c2c12ae2292ccf531b56fb083c Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 19 Jul 2020 17:40:24 +0800 Subject: [PATCH] pybind/mgr/k8sevents: drop python2 support Signed-off-by: Kefu Chai --- src/pybind/mgr/k8sevents/module.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pybind/mgr/k8sevents/module.py b/src/pybind/mgr/k8sevents/module.py index e6568269c8a65..afdd5ae77b9a1 100644 --- a/src/pybind/mgr/k8sevents/module.py +++ b/src/pybind/mgr/k8sevents/module.py @@ -33,13 +33,7 @@ import logging import tempfile import threading -try: - # python 3 - from urllib.parse import urlparse -except ImportError: - # python 2 fallback - from urlparse import urlparse - +from urllib.parse import urlparse from datetime import tzinfo, datetime, timedelta from urllib3.exceptions import MaxRetryError,ProtocolError -- 2.39.5