mirror of https://github.com/python/cpython
Issue14929: Stop Idle 3.x from closing on Unicode decode errors when grepping.
Patch by Roger Serwy.
This commit is contained in:
parent
c5301ef2df
commit
e1c5087802
|
@ -81,7 +81,7 @@ class GrepDialog(SearchDialogBase):
|
||||||
hits = 0
|
hits = 0
|
||||||
for fn in list:
|
for fn in list:
|
||||||
try:
|
try:
|
||||||
f = open(fn)
|
f = open(fn, errors='replace')
|
||||||
except IOError as msg:
|
except IOError as msg:
|
||||||
print(msg)
|
print(msg)
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -67,6 +67,9 @@ Core and Builtins
|
||||||
Library
|
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.
|
- Issue12510: Attempting to get invalid tooltip no longer closes Idle.
|
||||||
Original patch by Roger Serwy.
|
Original patch by Roger Serwy.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue