mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			240 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			240 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# Helper module for testing the skipmodules argument of warnings.warn()
 | 
						|
 | 
						|
import warnings
 | 
						|
 | 
						|
def outer(message, stacklevel=1):
 | 
						|
    inner(message, stacklevel)
 | 
						|
 | 
						|
def inner(message, stacklevel=1):
 | 
						|
    warnings.warn(message, stacklevel=stacklevel)
 |