Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cedd30b

Browse files
author
Steven M. Gava
committed
_finally_ tracked down and eliminated a major problem
in PyShell.py that was causing extreme headaches in working on EditorWindow.py
1 parent 4e526fe commit cedd30b

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Lib/idlelib/PyShell.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -740,10 +740,13 @@ def __init__(self, noshell=1):
740740
root.withdraw()
741741
flist = PyShellFileList(root)
742742

743-
dbg=OnDemandOutputWindow(flist)
744-
dbg.set_title('IDLE Debugging Messages')
745-
sys.stdout = PseudoFile(dbg,['stdout'])
746-
sys.stderr = PseudoFile(dbg,['stderr'])
743+
# the following causes lockups and silent failures when debugging
744+
# changes to EditorWindow.__init__ ; the console works fine for idle
745+
# debugging in any case, so disable this unnescesary stuff.
746+
#dbg=OnDemandOutputWindow(flist)
747+
#dbg.set_title('IDLE Debugging Messages')
748+
#sys.stdout = PseudoFile(dbg,['stdout'])
749+
#sys.stderr = PseudoFile(dbg,['stderr'])
747750

748751
try:
749752
self.server = protocol.Server(connection_hook = self.address_ok)

0 commit comments

Comments
 (0)