mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Revert copy_reg -> copyreg rename.
This commit is contained in:
		
							parent
							
								
									06d2a2cb0e
								
							
						
					
					
						commit
						dffbf5f542
					
				
					 23 changed files with 83 additions and 94 deletions
				
			
		|  | @ -37,7 +37,7 @@ | |||
| import threading | ||||
| import queue | ||||
| import traceback | ||||
| import copyreg | ||||
| import copy_reg | ||||
| import types | ||||
| import marshal | ||||
| 
 | ||||
|  | @ -60,8 +60,8 @@ def pickle_code(co): | |||
| #      assert isinstance(fn, type.FunctionType) | ||||
| #      return repr(fn) | ||||
| 
 | ||||
| copyreg.pickle(types.CodeType, pickle_code, unpickle_code) | ||||
| # copyreg.pickle(types.FunctionType, pickle_function, unpickle_function) | ||||
| copy_reg.pickle(types.CodeType, pickle_code, unpickle_code) | ||||
| # copy_reg.pickle(types.FunctionType, pickle_function, unpickle_function) | ||||
| 
 | ||||
| BUFSIZE = 8*1024 | ||||
| LOCALHOST = '127.0.0.1' | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl