mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Use ImportError
This commit is contained in:
		
							parent
							
								
									1820010c1a
								
							
						
					
					
						commit
						decc4b99e1
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -5,7 +5,7 @@
 | 
			
		|||
try:
 | 
			
		||||
	import mac
 | 
			
		||||
	os = mac
 | 
			
		||||
except NameError:
 | 
			
		||||
except ImportError:
 | 
			
		||||
	import posix
 | 
			
		||||
	os = posix
 | 
			
		||||
from stat import *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,7 @@
 | 
			
		|||
try:
 | 
			
		||||
	import mac
 | 
			
		||||
	os = mac
 | 
			
		||||
except NameError:
 | 
			
		||||
except ImportError:
 | 
			
		||||
	import posix
 | 
			
		||||
	os = posix
 | 
			
		||||
from stat import *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue