Skip to content

Commit 02cfe94

Browse files
committed
Close startup file before executing code
1 parent c115345 commit 02cfe94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/asyncio/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def run(self):
105105
import tokenize
106106
with tokenize.open(startup_path) as f:
107107
startup_code = compile(f.read(), startup_path, "exec")
108-
exec(startup_code, console.locals)
108+
exec(startup_code, console.locals)
109109
# TODO: Revisit in GH-143023
110110
except SystemExit:
111111
raise

0 commit comments

Comments
 (0)