[Freeipa-devel] [PATCH] fix for python < 2.6
Rob Crittenden
rcritten at redhat.com
Fri Oct 16 13:14:33 UTC 2009
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 <rcritten at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20091016/902b61e2/attachment.bin>
More information about the Freeipa-devel
mailing list