Fixed broken regular expressions after LINT refactor
This commit is contained in:
parent
9e4daacd74
commit
b4258faa29
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue