From 784a3f53a8f78995d4c8ca22f612a68828bc4838 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Tue, 28 Jan 2003 00:20:41 +0000 Subject: [PATCH] Use proper function name in exception messages --- Lib/pickletools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/pickletools.py b/Lib/pickletools.py index 2f52f3b6af5..152ea8816cb 100644 --- a/Lib/pickletools.py +++ b/Lib/pickletools.py @@ -653,10 +653,10 @@ def read_long4(f): n = read_int4(f) if n < 0: - raise ValueError("unicodestring4 byte count < 0: %d" % n) + raise ValueError("long4 byte count < 0: %d" % n) data = f.read(n) if len(data) != n: - raise ValueError("not enough data in stream to read long1") + raise ValueError("not enough data in stream to read long4") return decode_long(data) long4 = ArgumentDescriptor(