mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	
		
			
	
	
		
			11 lines
		
	
	
	
		
			283 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
	
		
			283 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
								 | 
							
								# helper to the helper for testing skip_file_prefixes.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import os
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								package_path = os.path.dirname(__file__)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								def inner_api(message, *, stacklevel, warnings_module):
							 | 
						||
| 
								 | 
							
								    warnings_module.warn(
							 | 
						||
| 
								 | 
							
								            message, stacklevel=stacklevel,
							 | 
						||
| 
								 | 
							
								            skip_file_prefixes=(package_path,))
							 |