summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-04-10 11:34:46 (GMT)
committerGuido van Rossum <guido@python.org>1995-04-10 11:34:46 (GMT)
commit48aa82e2df3f50c6ce43ce1273622d239fad05e1 (patch)
tree559fa9b446b568dffb1bd46bf7b442048ee83075 /Lib
parent96628a90c47f15f357b31d665a4222d175e17b27 (diff)
downloadcpython-48aa82e2df3f50c6ce43ce1273622d239fad05e1.zip
cpython-48aa82e2df3f50c6ce43ce1273622d239fad05e1.tar.gz
cpython-48aa82e2df3f50c6ce43ce1273622d239fad05e1.tar.bz2
correct typo in example
Diffstat (limited to 'Lib')
-rw-r--r--Lib/pickle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 404690e..2895237 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -92,7 +92,7 @@ To pickle an object x onto a file f, open for writing:
To unpickle an object x from a file f, open for reading:
u = pickle.Unpickler(f)
- x = u.load(x)
+ x = u.load()
The Pickler class only calls the method f.write with a string argument
(XXX possibly the interface should pass f.write instead of f).