From 7dae0e5bdf3151b60e88ee6b5f77b335ed76f026 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Tue, 7 May 2024 21:05:40 +0900 Subject: [PATCH] Remove fallback for Python 2 Python 2 is no longer supported, thus fallback to urllib2 is no longer used. Change-Id: I2cbae1b6759da8271b481541bf5ba7647de3498f --- cinder/api/urlmap.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cinder/api/urlmap.py b/cinder/api/urlmap.py index ed1afb39ca2..9da4c24bc9c 100644 --- a/cinder/api/urlmap.py +++ b/cinder/api/urlmap.py @@ -14,12 +14,9 @@ # under the License. import re +from urllib.request import parse_http_list import paste.urlmap -try: - from urllib.request import parse_http_list # pylint: disable=E0611 -except ImportError: - from urllib2 import parse_http_list # Python 2 from cinder.api.openstack import wsgi