mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Start replacing UserDict.DictMixin with collections.MutableMapping (the bsddb modules are next).
This commit is contained in:
		
							parent
							
								
									15ebc88d87
								
							
						
					
					
						commit
						b9da9bc0a0
					
				
					 4 changed files with 19 additions and 7 deletions
				
			
		|  | @ -38,12 +38,12 @@ | |||
|     HIGHEST_PROTOCOL = pickle.HIGHEST_PROTOCOL | ||||
|     def _dumps(object, protocol): | ||||
|         return pickle.dumps(object, protocol=protocol) | ||||
|     from UserDict import DictMixin | ||||
|     from collections import MutableMapping | ||||
| else: | ||||
|     HIGHEST_PROTOCOL = None | ||||
|     def _dumps(object, protocol): | ||||
|         return pickle.dumps(object, bin=protocol) | ||||
|     class DictMixin: pass | ||||
|     class MutableMapping: pass | ||||
| 
 | ||||
| from . import db | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Raymond Hettinger
						Raymond Hettinger