diff --git a/Lib/pickle.py b/Lib/pickle.py index 02a1b1d1ae8..9667781a8c3 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -351,7 +351,7 @@ def save_reduce(self, func, args, state=None, raise PicklingError("args from reduce() should be a tuple") # Assert that func is callable - if not callable(func): + if not hasattr(func, '__call__'): raise PicklingError("func from reduce should be callable") save = self.save