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:
parent
e9c18c7f94
commit
7dae0e5bdf
@ -14,12 +14,9 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
from urllib.request import parse_http_list
|
||||||
|
|
||||||
import paste.urlmap
|
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
|
from cinder.api.openstack import wsgi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user