Skip to content

Commit 454934c

Browse files
committed
Set to stderr
1 parent 57a4601 commit 454934c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyscriptjs/src/interpreter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ class OutputCtxManager:
390390
class OutputManager:
391391
def __init__(self, out=None, err=None, output_to_console=True, append=True):
392392
sys.stdout = self._out_manager = OutputCtxManager(out, output_to_console, append)
393-
sys.strerr = self._err_manager = OutputCtxManager(err, output_to_console, append)
393+
sys.stderr = self._err_manager = OutputCtxManager(err, output_to_console, append)
394394
self.output_to_console = output_to_console
395395
self._append = append
396396
@@ -406,7 +406,7 @@ class OutputManager:
406406
self._out_manager.revert()
407407
self._err_manager.revert()
408408
sys.stdout = self._out_manager
409-
sys.stdout = self._err_manager
409+
sys.stderr = self._err_manager
410410
console.log("----> reverted")
411411
412412
pyscript = PyScript()

0 commit comments

Comments
 (0)