From: Neal Norwitz <nnorwitz@gmail.com>
Date: Tue, 28 Jan 2003 00:20:41 +0000 (+0000)
Subject: Use proper function name in exception messages
X-Git-Tag: v2.3c1~2271
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=784a3f53a8f78995d4c8ca22f612a68828bc4838;p=python

Use proper function name in exception messages
---

diff --git a/Lib/pickletools.py b/Lib/pickletools.py
index 2f52f3b6af..152ea8816c 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(