diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-04-24 02:25:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-23 19:25:08 -0400 |
commit | bd2dca035af88694e25fb060f984fbbcda82bed8 (patch) | |
tree | fed7d54ec1154ebc7390967d78c61e911509fae2 /Lib/idlelib/textview.py | |
parent | 7255bbd4a1841447a21c3eb74e4fd9e21818d833 (diff) | |
download | cpython-bd2dca035af88694e25fb060f984fbbcda82bed8.tar.gz cpython-bd2dca035af88694e25fb060f984fbbcda82bed8.zip |
gh-103668: Run pyugrade on idlelib (#103671)
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/textview.py')
-rw-r--r-- | Lib/idlelib/textview.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/textview.py b/Lib/idlelib/textview.py index a66c1a4309a..23f0f4cb502 100644 --- a/Lib/idlelib/textview.py +++ b/Lib/idlelib/textview.py @@ -169,7 +169,7 @@ def view_file(parent, title, filename, encoding, modal=True, wrap='word', with contents of the file. """ try: - with open(filename, 'r', encoding=encoding) as file: + with open(filename, encoding=encoding) as file: contents = file.read() except OSError: showerror(title='File Load Error', |