Commit fb409531 authored by Michele Tartara's avatar Michele Tartara
Browse files

Remove use of deprecated function



cgi.parse_qs() is deprecated in python 2.6 and substituted by
urlparse.parse_qs().

This patch modifies the code to use the new function.
Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 27263c47
......@@ -26,8 +26,8 @@
# C0103: Invalid name, since the R_* names are not conforming
import cgi
import re
import urlparse
from ganeti import constants
from ganeti import http
......@@ -71,7 +71,7 @@ class Mapper:
"""
if "?" in uri:
(path, query) = uri.split("?", 1)
args = cgi.parse_qs(query)
args = urlparse.parse_qs(query)
else:
path = uri
query = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment