mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263)
This commit is contained in:
		
							parent
							
								
									9eb5ca0774
								
							
						
					
					
						commit
						2e576f5aec
					
				
					 22 changed files with 90 additions and 85 deletions
				
			
		| 
						 | 
				
			
			@ -4,6 +4,7 @@
 | 
			
		|||
"""
 | 
			
		||||
 | 
			
		||||
import collections
 | 
			
		||||
import collections.abc
 | 
			
		||||
import decimal
 | 
			
		||||
import doctest
 | 
			
		||||
import math
 | 
			
		||||
| 
						 | 
				
			
			@ -218,8 +219,8 @@ def assertApproxEqual(
 | 
			
		|||
        if rel is None:
 | 
			
		||||
            rel = self.rel
 | 
			
		||||
        if (
 | 
			
		||||
                isinstance(first, collections.Sequence) and
 | 
			
		||||
                isinstance(second, collections.Sequence)
 | 
			
		||||
                isinstance(first, collections.abc.Sequence) and
 | 
			
		||||
                isinstance(second, collections.abc.Sequence)
 | 
			
		||||
            ):
 | 
			
		||||
            check = self._check_approx_seq
 | 
			
		||||
        else:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue