parse_qs is in cgi on Python < 2.6, use that instead.

Python 2.6's cgi module calls the parse_qs in urlparse for backwards compatibility. I had originally done a try/except ImportError but since this is already specifically handled for backwards compatibility by the cgi module I went with that instead.

I pushed this out under the 1-liner rule.

>From b8cadd90bd4af57108c9ef2e4d7a450987ded8aa Mon Sep 17 00:00:00 2001
From: Rob Crittenden <rcrit...@redhat.com>
Date: Fri, 16 Oct 2009 09:12:17 -0400
Subject: [PATCH] parse_qs is in cgi on Python < 2.6, use that instead

Python 2.6's cgi module calls the parse_qs in urlparse for backwards
compatibility
---
 ipaserver/rpcserver.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ipaserver/rpcserver.py b/ipaserver/rpcserver.py
index 72f2219..e57246f 100644
--- a/ipaserver/rpcserver.py
+++ b/ipaserver/rpcserver.py
@@ -23,7 +23,7 @@ RPC server.
 Also see the `ipalib.rpc` module.
 """

-from urlparse import parse_qs
+from cgi import parse_qs
 from xmlrpclib import Fault
 from ipalib.backend import Executioner
from ipalib.errors import PublicError, InternalError, CommandError, JSONError
--
1.6.2.5

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to