Fixed broken regular expressions after LINT refactor

This commit is contained in:
Fabio Manganiello 2021-02-26 22:33:26 +01:00
parent 9e4daacd74
commit b4258faa29
2 changed files with 3 additions and 3 deletions

View file

@ -129,7 +129,7 @@ class Request(Message):
except:
if isinstance(v, str):
try:
exec('{}="{}"'.format(k, re.sub(r'(^|[^\\\])"', '\1\\"', v)))
exec('{}="{}"'.format(k, re.sub(r'(^|[^\\])"', '\1\\"', v)))
except:
pass

View file

@ -339,7 +339,7 @@ class WhileProcedure(LoopProcedure):
if isinstance(v, str):
# noinspection PyBroadException
try:
context[k] = eval('"{}"'.format(re.sub(r'(^|[^\\\])"', '\1\\"', v)))
context[k] = eval('"{}"'.format(re.sub(r'(^|[^\\])"', '\1\\"', v)))
except:
pass
@ -452,7 +452,7 @@ class IfProcedure(Procedure):
except:
if isinstance(v, str):
try:
exec('{}="{}"'.format(k, re.sub(r'(^|[^\\\])"', '\1\\"', v)))
exec('{}="{}"'.format(k, re.sub(r'(^|[^\\])"', '\1\\"', v)))
except:
pass