mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	SF 662923: iterator for dbm keys
When shelve and the bsdbm where expanded to a full mapping interface, this module was missed.
This commit is contained in:
		
							parent
							
								
									3567a876c7
								
							
						
					
					
						commit
						2dd1ed69b4
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -23,6 +23,7 @@ is read when the database is opened, and some updates rewrite the whole index)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import os as _os
 | 
					import os as _os
 | 
				
			||||||
import __builtin__
 | 
					import __builtin__
 | 
				
			||||||
 | 
					import UserDict
 | 
				
			||||||
 | 
					
 | 
				
			||||||
_open = __builtin__.open
 | 
					_open = __builtin__.open
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -30,7 +31,7 @@ _BLOCKSIZE = 512
 | 
				
			||||||
 | 
					
 | 
				
			||||||
error = IOError                         # For anydbm
 | 
					error = IOError                         # For anydbm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class _Database:
 | 
					class _Database(UserDict.DictMixin):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __init__(self, file, mode):
 | 
					    def __init__(self, file, mode):
 | 
				
			||||||
        self._mode = mode
 | 
					        self._mode = mode
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue