mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
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.
This commit is contained in:
parent
16501b7082
commit
9ebe8794f0
5 changed files with 69 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue