Minor refactoring

This commit is contained in:
Miroslav Stampar 2015-09-24 10:24:37 +02:00
parent 29bdcf0e65
commit 12b9939baa

View File

@ -38,7 +38,6 @@ def tamper(payload, **kwargs):
retVal = payload
if payload:
for regex, subst in ((r"\s+=\s+", " LIKE "), (r"\s+=", " LIKE"), (r"=\s+", "LIKE ")):
retVal = re.sub(regex, subst, retVal)
retVal = re.sub(r"\s*=\s*", " LIKE ", retVal)
return retVal