mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Use functools.reduce() in difflib instead of __builtin__.reduce() to silence
warnings when running under -3.
This commit is contained in:
		
							parent
							
								
									83e818415a
								
							
						
					
					
						commit
						46265860c2
					
				
					 2 changed files with 6 additions and 5 deletions
				
			
		|  | @ -34,6 +34,7 @@ | |||
| 
 | ||||
| import heapq | ||||
| from collections import namedtuple as _namedtuple | ||||
| from functools import reduce | ||||
| 
 | ||||
| Match = _namedtuple('Match', 'a b size') | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Brett Cannon
						Brett Cannon