Skip to content

Commit dac50cc

Browse files
committed
gh-132952: Import _io instead of io at startup
1 parent 17718b0 commit dac50cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/pylifecycle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2762,7 +2762,7 @@ init_set_builtins_open(void)
27622762
goto error;
27632763
}
27642764

2765-
if (!(wrapper = PyImport_ImportModuleAttrString("io", "open"))) {
2765+
if (!(wrapper = PyImport_ImportModuleAttrString("_io", "open"))) {
27662766
goto error;
27672767
}
27682768

@@ -2807,7 +2807,7 @@ init_sys_streams(PyThreadState *tstate)
28072807
}
28082808
#endif
28092809

2810-
if (!(iomod = PyImport_ImportModule("io"))) {
2810+
if (!(iomod = PyImport_ImportModule("_io"))) {
28112811
goto error;
28122812
}
28132813

0 commit comments

Comments
 (0)