File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 59
59
globalThis .python .pythonMonkey .isCompilableUnit = pm .isCompilableUnit
60
60
globalThis .python .pythonMonkey .nodeModules = node_modules
61
61
globalThis .python .print = print
62
- globalThis .python .stdout .write = sys .stdout .write
63
- globalThis .python .stderr .write = sys .stderr .write
64
- globalThis .python .stdout .read = sys .stdout .read
65
- globalThis .python .stderr .read = sys .stderr .read
62
+ globalThis .python .stdout .write = lambda s : sys .stdout .write ( s )
63
+ globalThis .python .stderr .write = lambda s : sys .stderr .write ( s )
64
+ globalThis .python .stdout .read = lambda n : sys .stdout .read ( n )
65
+ globalThis .python .stderr .read = lambda n : sys .stderr .read ( n )
66
66
globalThis .python .eval = eval
67
67
globalThis .python .exec = exec
68
68
globalThis .python .getenv = os .getenv
You can’t perform that action at this time.
0 commit comments