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 5959globalThis .python .pythonMonkey .isCompilableUnit = pm .isCompilableUnit
6060globalThis .python .pythonMonkey .nodeModules = node_modules
6161globalThis .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 )
6666globalThis .python .eval = eval
6767globalThis .python .exec = exec
6868globalThis .python .getenv = os .getenv
You can’t perform that action at this time.
0 commit comments