mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Patch by Quentin Gallet-Gilles: Renaming leftovers for 2.6.
This fixes the omissions of configparser, copyreg, queue and socketserver renaming.
This commit is contained in:
parent
5e7b1c07bc
commit
ea0b22a167
8 changed files with 12 additions and 12 deletions
|
@ -13,7 +13,7 @@ dispatch_table = {}
|
|||
|
||||
def pickle(ob_type, pickle_function, constructor_ob=None):
|
||||
if type(ob_type) is _ClassType:
|
||||
raise TypeError("copy_reg is not intended for use with classes")
|
||||
raise TypeError("copyreg is not intended for use with classes")
|
||||
|
||||
if not hasattr(pickle_function, '__call__'):
|
||||
raise TypeError("reduction functions must be callable")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue