]> granicus.if.org Git - python/commit
bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)
authorTerry Jan Reedy <tjreedy@udel.edu>
Mon, 12 Feb 2018 22:42:41 +0000 (17:42 -0500)
committerGitHub <noreply@github.com>
Mon, 12 Feb 2018 22:42:41 +0000 (17:42 -0500)
commit688722cedd6437910ff185ecf94fb3b749ad37f2
treefb6bd49c0019cb3e84d27180d07a4b533e74134a
parentf34e03ec0ea6a4cef8d966087c77e616c4a5893b
bpo-32837: IDLE - require encoding argument for textview.view_file. (GH-5646)

Using the system and place-dependent default encoding for open()
is a bad idea for IDLE's system and location-independent files.
Lib/idlelib/idle_test/test_textview.py
Lib/idlelib/textview.py
Misc/NEWS.d/next/IDLE/2018-02-12-17-22-48.bpo-32837.-33QPl.rst [new file with mode: 0644]