From cfdd272166a2689b2f50e5df65e1304a2040633d Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 11 Dec 2008 10:30:43 -0500 Subject: Actually replace trailing ) characters with '' --- ipa_server/ipaldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipa_server/ipaldap.py') diff --git a/ipa_server/ipaldap.py b/ipa_server/ipaldap.py index e7c56e5d..f520475e 100644 --- a/ipa_server/ipaldap.py +++ b/ipa_server/ipaldap.py @@ -538,7 +538,7 @@ def notfound(args): # Python re doesn't do paren counting so the string could # have a trailing paren "foo)" target = re.match(r'\(.*=(.*)\)', searchfilter).group(1) - target.replace(")","") + target = target.replace(")","") except: target = searchfilter return "%s not found" % str(target) -- cgit