Skip to content

Commit 11593cc

Browse files
committed
Fix manhole python compiler
1 parent b717598 commit 11593cc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

mautrix/util/manhole.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,13 @@ class StatefulCommandCompiler(codeop.CommandCompiler):
7676
def __init__(self) -> None:
7777
super().__init__()
7878
self.compiler = functools.partial(
79-
compile, optimize=1, flags=ast.PyCF_ONLY_AST | codeop.PyCF_DONT_IMPLY_DEDENT
79+
compile,
80+
optimize=1,
81+
flags=(
82+
ast.PyCF_ONLY_AST
83+
| codeop.PyCF_DONT_IMPLY_DEDENT
84+
| codeop.PyCF_ALLOW_INCOMPLETE_INPUT
85+
),
8086
)
8187
self.buf = BytesIO()
8288

0 commit comments

Comments
 (0)