From a1f9cc2ce8d10f108dbeb4d8be6a435b7e2ccf81 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Tue, 18 Aug 2009 15:02:09 -0400 Subject: [PATCH] clarify that my protocol_version function returns a value, doesn't print anything --- serializing.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serializing.html b/serializing.html index 0feed73..3d4ebdf 100644 --- a/serializing.html +++ b/serializing.html @@ -287,7 +287,8 @@ def protocol_version(file_object):
 >>> import pickleversion
 >>> with open('entry.pickle', 'rb') as f:
-...     pickleversion.protocol_version(f)
+...     v = pickleversion.protocol_version(f)
+>>> v
 3