8000 gh-124960: Fixed `barry_as_FLUFL` future flag does not work in new REPL by Wulian233 · Pull Request #124999 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-124960: Fixed barry_as_FLUFL future flag does not work in new REPL #124999

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 14, 2024
Prev Previous commit
Next Next commit
Update Lib/_pyrepl/console.py
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
  • Loading branch information
Wulian233 and nineteendo authored Oct 8, 2024
commit 2080b248cb8226d03dd64b0d32a75acbb5c17abb
2 changes: 1 addition & 1 deletion Lib/_pyrepl/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _excepthook(self, typ, value, tb):

def runsource(self, source, filename="<input>", symbol="single"):
try:
tree = self.compile.compiler(source, filename, symbol, ast.PyCF_ONLY_AST)
tree = self.compile.compiler(source, filename, "exec", ast.PyCF_ONLY_AST, incomplete_input=False)
except (SyntaxError, OverflowError, ValueError):
self.showsyntaxerror(filename, source=source)
return False
Expand Down
Loading
0