Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 639a8ff commit 7cec252Copy full SHA for 7cec252
1 file changed
Lib/idlelib/PyShell.py
@@ -827,7 +827,7 @@ def __init__(self, flist=None):
827
self.console = PseudoFile(self, "console", IOBinding.encoding)
828
if not use_subprocess:
829
sys.stdout = self.stdout
830
-### sys.stderr = self.stderr # Don't redirect exceptions, pyshell NG
+ sys.stderr = self.stderr
831
sys.stdin = self
832
#
833
self.history = self.History(self.text)
@@ -991,12 +991,6 @@ def readline(self):
991
line = self.text.get("iomark", "end-1c")
992
if len(line) == 0: # may be EOF if we quit our mainloop with Ctrl-C
993
line = "\n"
994
- if isinstance(line, str):
995
- from idlelib import IOBinding
996
- try:
997
- line = line.encode(IOBinding.encoding)
998
- except UnicodeError:
999
- pass
1000
self.resetoutput()
1001
if self.canceled:
1002
self.canceled = 0
0 commit comments