mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Issue #9501: Merged fix from 3.3.
This commit is contained in:
		
						commit
						b51aa7b7eb
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -708,7 +708,8 @@ def _removeHandlerRef(wr): | ||||||
|     # This function can be called during module teardown, when globals are |     # This function can be called during module teardown, when globals are | ||||||
|     # set to None. If _acquireLock is None, assume this is the case and do |     # set to None. If _acquireLock is None, assume this is the case and do | ||||||
|     # nothing. |     # nothing. | ||||||
|     if _acquireLock is not None: |     if (_acquireLock is not None and _handlerList is not None and | ||||||
|  |         _releaseLock is not None): | ||||||
|         _acquireLock() |         _acquireLock() | ||||||
|         try: |         try: | ||||||
|             if wr in _handlerList: |             if wr in _handlerList: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Vinay Sajip
						Vinay Sajip