Use proper function name in exception messages

This commit is contained in:
Neal Norwitz 2003-01-28 00:20:41 +00:00
parent fdb8cfab08
commit 784a3f53a8
1 changed files with 2 additions and 2 deletions

View File

@ -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(