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: Michele Tartara <mtartara@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
# C0103: Invalid name, since the R_* names are not conforming
-import cgi
import re
+import urlparse
from ganeti import constants
from ganeti import http
"""
if "?" in uri:
(path, query) = uri.split("?", 1)
- args = cgi.parse_qs(query)
+ args = urlparse.parse_qs(query)
else:
path = uri
query = None