mirror of
				https://github.com/python/cpython.git
				synced 2025-10-25 10:44:55 +00:00 
			
		
		
		
	Fix another comparison between None and 0.
This commit is contained in:
		
							parent
							
								
									93a669260d
								
							
						
					
					
						commit
						b5d47efe92
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -420,7 +420,8 @@ class pywintypes: | ||||||
| 
 | 
 | ||||||
| def _cleanup(): | def _cleanup(): | ||||||
|     for inst in _active[:]: |     for inst in _active[:]: | ||||||
|         if inst.poll(_deadstate=sys.maxint) >= 0: |         res = inst.poll(_deadstate=sys.maxint) | ||||||
|  |         if res is not None and res >= 0: | ||||||
|             try: |             try: | ||||||
|                 _active.remove(inst) |                 _active.remove(inst) | ||||||
|             except ValueError: |             except ValueError: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum