File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed
Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 1- sys .stderr .flush ()
2- sys .stderr .close () # DyLin warn
3- # reopen stderr to prevent program from crash
4- sys .stderr = io .TextIOWrapper (io .FileIO (2 , 'w' ), write_through = True )
1+ # sys.stderr.flush()
2+ # sys.stderr.close() # DyLin warn
3+ # # reopen stderr to prevent program from crash
4+ # sys.stderr = io.TextIOWrapper(io.FileIO(2, 'w'), write_through=True)
Original file line number Diff line number Diff line change 1- old_stdout = sys .stdout
2- # flush sys.stdout
3- sys .stdout .flush ()
1+ # import io
2+ # import sys
43
5- # close sys.stdout
6- sys .stdout .close () # DyLin warn
4+ # old_stdout = sys.stdout
5+ # # flush sys.stdout
6+ # sys.stdout.flush()
77
8- # reopen sys.stdout to prevent program from crashing
9- sys .stdout = io .TextIOWrapper (io .FileIO (1 , 'w' ), write_through = True )
8+ # # close sys.stdout
9+ # sys.stdout.close() # DyLin warn
10+
11+ # # reopen sys.stdout to prevent program from crashing
12+ # sys.stdout = io.TextIOWrapper(io.FileIO(1, 'w'), write_through=True)
You can’t perform that action at this time.
0 commit comments