summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/PyShell.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-03-24 17:42:15 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-03-24 17:42:15 (GMT)
commitac5164dd985397e5bbf89c2789738601b7a47a72 (patch)
tree55fcca1070bb83c2e6caeac4274f996b3c4cb000 /Lib/idlelib/PyShell.py
parent1afb9da7478bc4c9470b6f7c692cff233f901548 (diff)
downloadcpython-ac5164dd985397e5bbf89c2789738601b7a47a72.zip
cpython-ac5164dd985397e5bbf89c2789738601b7a47a72.tar.gz
cpython-ac5164dd985397e5bbf89c2789738601b7a47a72.tar.bz2
Issue #23583: Fixed writing unicode to standard output stream in IDLE.
Added tests for standard IO streams in IDLE.
Diffstat (limited to 'Lib/idlelib/PyShell.py')
-rwxr-xr-xLib/idlelib/PyShell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 996c470..79db883 100755
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -1347,7 +1347,7 @@ class PseudoOutputFile(PseudoFile):
if type(s) not in (unicode, str, bytearray):
# See issue #19481
if isinstance(s, unicode):
- s = unicode.__getslice__(s, None, None)
+ s = unicode.__getitem__(s, slice(None))
elif isinstance(s, str):
s = str.__str__(s)
elif isinstance(s, bytearray):