Skip to content

Commit 711d724

Browse files
committed
Fix pymain_run_stdin() in Modules/main.c to call pymain_start_pyrepl() instead of pymain_run_module(L"_pyrepl", 0)
This change is an equivalent to the one done in https://github.com/python/cpython/pull/120904/files#diff-79e40dbd94b164b5f42a960224cc7496e33c189b4c66a6810904eda7d703b6f2R600
1 parent b681275 commit 711d724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ pymain_run_stdin(PyConfig *config)
570570
int run = PyRun_AnyFileExFlags(stdin, "<stdin>", 0, &cf);
571571
return (run != 0);
572572
}
573-
return pymain_run_module(L"_pyrepl", 0);
573+
return pymain_start_pyrepl();
574574
}
575575

576576

0 commit comments

Comments
 (0)