summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/pickle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 02a1b1d..9667781 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -351,7 +351,7 @@ class Pickler:
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