This commit is contained in:
Miroslav Stampar
2021-07-14 01:10:33 +02:00
parent 795b9e6521
commit fa05878712
2 changed files with 2 additions and 2 deletions

View File

@@ -1275,7 +1275,7 @@ class Connect(object):
while True:
try:
compile(getBytes(conf.evalCode.replace(';', '\n')), "", "exec")
compile(getBytes(re.sub(r"\s*;\s*", "\n", conf.evalCode)), "", "exec")
except SyntaxError as ex:
if ex.text:
original = replacement = ex.text.strip()