mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +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
				
			
		|  | @ -14,6 +14,7 @@ | |||
| """ | ||||
| 
 | ||||
| import collections | ||||
| import collections.abc | ||||
| import concurrent.futures | ||||
| import heapq | ||||
| import itertools | ||||
|  | @ -1001,7 +1002,7 @@ def create_server(self, protocol_factory, host=None, port=None, | |||
|             if host == '': | ||||
|                 hosts = [None] | ||||
|             elif (isinstance(host, str) or | ||||
|                   not isinstance(host, collections.Iterable)): | ||||
|                   not isinstance(host, collections.abc.Iterable)): | ||||
|                 hosts = [host] | ||||
|             else: | ||||
|                 hosts = host | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Serhiy Storchaka
						Serhiy Storchaka