From 9ebe8794f003dadfff578a066ea503a3e37ffe1d Mon Sep 17 00:00:00 2001 From: Tal Einat Date: Fri, 7 Dec 2018 08:32:21 +0200 Subject: 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. --- Lib/idlelib/outwin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/idlelib/outwin.py') 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) -- cgit v1.2.1