From fb409531d044a4d6eefdf1faeb80bde1812854d8 Mon Sep 17 00:00:00 2001
From: Michele Tartara <mtartara@google.com>
Date: Fri, 22 Mar 2013 11:37:18 +0000
Subject: [PATCH] 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: Michele Tartara <mtartara@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
---
 lib/rapi/connector.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/rapi/connector.py b/lib/rapi/connector.py
index fd2de9276..46b89da10 100644
--- a/lib/rapi/connector.py
+++ b/lib/rapi/connector.py
@@ -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
-- 
GitLab