mirror of
				https://github.com/python/cpython.git
				synced 2025-10-26 03:04:41 +00:00 
			
		
		
		
	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
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		|  | @ -81,7 +81,7 @@ def grep_it(self, prog, path): | |||
|         hits = 0 | ||||
|         for fn in list: | ||||
|             try: | ||||
|                 f = open(fn) | ||||
|                 f = open(fn, errors='replace') | ||||
|             except IOError as msg: | ||||
|                 print(msg) | ||||
|                 continue | ||||
|  |  | |||
|  | @ -67,6 +67,9 @@ Core and Builtins | |||
| 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. | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Terry Jan Reedy
						Terry Jan Reedy