Actually replace trailing ) characters with ''

This commit is contained in:
Rob Crittenden 2008-12-11 10:30:43 -05:00
parent 46bd3974af
commit cfdd272166

View File

@ -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)