summaryrefslogtreecommitdiffstats
path: root/Lib/pickle.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 7164eb1..5cc92bf 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -157,7 +157,8 @@ class Pickler:
reduce = object.__reduce__
except AttributeError:
raise PicklingError, \
- "can't pickle %s objects" % `t.__name__`
+ "can't pickle %s object: %s" % (`t.__name__`,
+ `object`)
else:
tup = reduce()
else: