mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	fix import to work with either module name.
This commit is contained in:
		
							parent
							
								
									6e57c2a653
								
							
						
					
					
						commit
						6564ca72ad
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -7,7 +7,12 @@ import test_all
 | 
			
		|||
from cStringIO import StringIO
 | 
			
		||||
 | 
			
		||||
import unittest
 | 
			
		||||
from bsddb3 import db
 | 
			
		||||
try:
 | 
			
		||||
    # For Pythons w/distutils pybsddb
 | 
			
		||||
    from bsddb3 import db, dbshelve
 | 
			
		||||
except ImportError:
 | 
			
		||||
    # For Python 2.3
 | 
			
		||||
    from bsddb import db, dbshelve
 | 
			
		||||
 | 
			
		||||
lexical_cmp = cmp
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue