Remove fallback for Python 2

Python 2 is no longer supported, thus fallback to urllib2 is no longer
used.

Change-Id: I2cbae1b6759da8271b481541bf5ba7647de3498f
This commit is contained in:
Takashi Kajinami 2024-05-07 21:05:40 +09:00
parent e9c18c7f94
commit 7dae0e5bdf

View File

@ -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