mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	 8a9cd20edc
			
		
	
	
		8a9cd20edc
		
	
	
	
	
		
			
			instead of failing with SystemError. Relative import from non-package now fails with ImportError rather than SystemError.
		
			
				
	
	
		
			3 lines
		
	
	
	
		
			71 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			3 lines
		
	
	
	
		
			71 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import sys
 | |
| sys.modules.pop(__package__, None)
 | |
| from . import submodule2
 |