Skip to content

Commit 3caa22d

Browse files
committed
use uncached factory in SysModuleBuiltins.stdInit
1 parent a01b6b8 commit 3caa22d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/SysModuleBuiltins.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,17 +557,17 @@ public void initStd(Python3Core core) {
557557
PBuffered reader = factory.createBufferedReader(PythonBuiltinClassType.PBufferedReader);
558558
BufferedReaderBuiltins.BufferedReaderInit.internalInit(reader, (PFileIO) get(builtinConstants, "stdin"), BufferedReaderBuiltins.DEFAULT_BUFFER_SIZE, factory, posixSupport,
559559
posixLib);
560-
setWrapper("stdin", "__stdin__", "r", stdioEncoding, stdioError, reader, sysModule, textIOWrapperInitNode, core.factory());
560+
setWrapper("stdin", "__stdin__", "r", stdioEncoding, stdioError, reader, sysModule, textIOWrapperInitNode, factory);
561561

562562
PBuffered writer = factory.createBufferedWriter(PythonBuiltinClassType.PBufferedWriter);
563563
BufferedWriterBuiltins.BufferedWriterInit.internalInit(writer, (PFileIO) get(builtinConstants, "stdout"), BufferedReaderBuiltins.DEFAULT_BUFFER_SIZE, factory, posixSupport,
564564
posixLib);
565-
PTextIO stdout = setWrapper("stdout", "__stdout__", "w", stdioEncoding, stdioError, writer, sysModule, textIOWrapperInitNode, core.factory());
565+
PTextIO stdout = setWrapper("stdout", "__stdout__", "w", stdioEncoding, stdioError, writer, sysModule, textIOWrapperInitNode, factory);
566566

567567
writer = factory.createBufferedWriter(PythonBuiltinClassType.PBufferedWriter);
568568
BufferedWriterBuiltins.BufferedWriterInit.internalInit(writer, (PFileIO) get(builtinConstants, "stderr"), BufferedReaderBuiltins.DEFAULT_BUFFER_SIZE, factory, posixSupport,
569569
posixLib);
570-
PTextIO stderr = setWrapper("stderr", "__stderr__", "w", stdioEncoding, "backslashreplace", writer, sysModule, textIOWrapperInitNode, core.factory());
570+
PTextIO stderr = setWrapper("stderr", "__stderr__", "w", stdioEncoding, "backslashreplace", writer, sysModule, textIOWrapperInitNode, factory);
571571

572572
// register atexit close std out/err
573573
core.getContext().registerAtexitHook((ctx) -> {

0 commit comments

Comments
 (0)