summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2012-05-28 02:56:49 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2012-05-28 02:56:49 (GMT)
commite1c5087802428133e7b45228fa22be8d3f2d463c (patch)
tree079fb652dd1e6240090f4a2000b93f0a9261e911 /Lib
parentc5301ef2df8e5ecae60decca91927d3c60fc0d77 (diff)
downloadcpython-e1c5087802428133e7b45228fa22be8d3f2d463c.zip
cpython-e1c5087802428133e7b45228fa22be8d3f2d463c.tar.gz
cpython-e1c5087802428133e7b45228fa22be8d3f2d463c.tar.bz2
Issue14929: Stop Idle 3.x from closing on Unicode decode errors when grepping.
Patch by Roger Serwy.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/GrepDialog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/GrepDialog.py b/Lib/idlelib/GrepDialog.py
index 01e0483..27fcc33 100644
--- a/Lib/idlelib/GrepDialog.py
+++ b/Lib/idlelib/GrepDialog.py
@@ -81,7 +81,7 @@ class GrepDialog(SearchDialogBase):
hits = 0
for fn in list:
try:
- f = open(fn)
+ f = open(fn, errors='replace')
except IOError as msg:
print(msg)
continue