diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-22 04:17:28 -0400 |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-22 04:17:28 -0400 |
commit | 06a1fcbb0035c664fefc53ddb8df65cc03a537b7 (patch) | |
tree | e50c520734698989bef5fa630ca12d9c531b9e37 /Lib/idlelib/textView.py | |
parent | 6ff7a14b914dc1a456c122da75b60cbb613ab31d (diff) | |
download | cpython-git-06a1fcbb0035c664fefc53ddb8df65cc03a537b7.tar.gz |
Issue #27365: Allow non-ascii in idlelib/NEWS.txt, for contributor names.
Rest of patch that should not be cherry picked into 3.5.2 final.
Diffstat (limited to 'Lib/idlelib/textView.py')
-rw-r--r-- | Lib/idlelib/textView.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/idlelib/textView.py b/Lib/idlelib/textView.py index 01b2d8f4ab..12ac31962d 100644 --- a/Lib/idlelib/textView.py +++ b/Lib/idlelib/textView.py @@ -76,6 +76,10 @@ def view_file(parent, title, filename, encoding=None, modal=True): tkMessageBox.showerror(title='File Load Error', message='Unable to load file %r .' % filename, parent=parent) + except UnicodeDecodeError as err: + tkMessageBox.showerror(title='Unicode Decode Error', + message=str(err), + parent=parent) else: return view_text(parent, title, contents, modal) |