mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	Issues #10867: remove old cPickle imports from multiprocessing
This commit is contained in:
		
							parent
							
								
									38d54f7867
								
							
						
					
					
						commit
						f70a538f20
					
				
					 3 changed files with 5 additions and 10 deletions
				
			
		|  | @ -151,14 +151,10 @@ def thread_is_spawning(): | |||
|     import _subprocess | ||||
|     import time | ||||
| 
 | ||||
|     from pickle import dump, load, HIGHEST_PROTOCOL | ||||
|     from ._multiprocessing import win32, Connection, PipeConnection | ||||
|     from .util import Finalize | ||||
| 
 | ||||
|     #try: | ||||
|     #    from cPickle import dump, load, HIGHEST_PROTOCOL | ||||
|     #except ImportError: | ||||
|     from pickle import load, HIGHEST_PROTOCOL | ||||
| 
 | ||||
|     def dump(obj, file, protocol=None): | ||||
|         ForkingPickler(file, protocol).dump(obj) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jesse Noller
						Jesse Noller