minor fix for Python v2.6

This commit is contained in:
Miroslav Stampar 2012-02-20 19:35:57 +00:00
parent f55ad46119
commit 3e4db6d140

View File

@ -1637,7 +1637,7 @@ def getSPLSnippet(dbms, name, **variables):
retVal = re.sub(r"#.+", "", retVal)
for _ in variables.keys():
retVal = re.sub(r"%%%s%%" % _, variables[_], retVal, flags=re.I)
retVal = re.sub(r"%%%s%%" % _, variables[_], retVal)
_ = re.search(r"%([^%]+)%", retVal, re.I)
if _: