diff options
author | Tal Einat <taleinat+github@gmail.com> | 2018-12-07 08:32:21 +0200 |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2018-12-07 01:32:21 -0500 |
commit | 9ebe8794f003dadfff578a066ea503a3e37ffe1d (patch) | |
tree | 427935bc44f75fac3de05d16ba7d60370b2bb250 /Lib/idlelib/outwin.py | |
parent | 16501b70826695991b3a151dfc538f010be5c765 (diff) | |
download | cpython-git-9ebe8794f003dadfff578a066ea503a3e37ffe1d.tar.gz |
bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" (#10464)
* bpo-34864: warn if "Prefer tabs when opening documents" set to "Always"
* add NEWS entry
* address code review comments
* address second code review comments
* Add entry for idlelib/NEWS.txt.
Diffstat (limited to 'Lib/idlelib/outwin.py')
-rw-r--r-- | Lib/idlelib/outwin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/outwin.py b/Lib/idlelib/outwin.py index 4af9f1afae..e962142498 100644 --- a/Lib/idlelib/outwin.py +++ b/Lib/idlelib/outwin.py @@ -109,7 +109,7 @@ class OutputWindow(EditorWindow): Return: Length of text inserted. """ - if isinstance(s, (bytes, bytes)): + if isinstance(s, bytes): s = s.decode(iomenu.encoding, "replace") self.text.insert(mark, s, tags) self.text.see(mark) |