mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Merge 3.2
This commit is contained in:
commit
aabbda5354
27 changed files with 51 additions and 54 deletions
|
@ -362,7 +362,7 @@ class _Pickler:
|
|||
raise PicklingError("args from save_reduce() should be a tuple")
|
||||
|
||||
# Assert that func is callable
|
||||
if not hasattr(func, '__call__'):
|
||||
if not callable(func):
|
||||
raise PicklingError("func from save_reduce() should be callable")
|
||||
|
||||
save = self.save
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue