changeset: 77199:12454f78967b branch: 3.2 parent: 77195:4a7582866735 user: Terry Jan Reedy date: Sun May 27 22:56:49 2012 -0400 files: Lib/idlelib/GrepDialog.py Misc/NEWS description: Issue14929: Stop Idle 3.x from closing on Unicode decode errors when grepping. Patch by Roger Serwy. diff -r 4a7582866735 -r 12454f78967b Lib/idlelib/GrepDialog.py --- a/Lib/idlelib/GrepDialog.py Sun May 27 21:29:17 2012 -0400 +++ b/Lib/idlelib/GrepDialog.py Sun May 27 22:56:49 2012 -0400 @@ -81,7 +81,7 @@ hits = 0 for fn in list: try: - f = open(fn) + f = open(fn, errors='replace') except IOError as msg: print(msg) continue diff -r 4a7582866735 -r 12454f78967b Misc/NEWS --- a/Misc/NEWS Sun May 27 21:29:17 2012 -0400 +++ b/Misc/NEWS Sun May 27 22:56:49 2012 -0400 @@ -67,6 +67,9 @@ Library ------- +- Issue14929: Stop Idle 3.x from closing on Unicode decode errors when grepping. + Patch by Roger Serwy. + - Issue12510: Attempting to get invalid tooltip no longer closes Idle. Original patch by Roger Serwy.

AltStyle によって変換されたページ (->オリジナル) /