diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-01-28 00:20:41 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-01-28 00:20:41 (GMT) |
commit | 784a3f53a8f78995d4c8ca22f612a68828bc4838 (patch) | |
tree | a996b602b95a7ca67dc11b9e015b0c6380aca8f2 /Lib/pickletools.py | |
parent | fdb8cfab085d0f412411b090796e9f856ee0cab5 (diff) | |
download | cpython-784a3f53a8f78995d4c8ca22f612a68828bc4838.zip cpython-784a3f53a8f78995d4c8ca22f612a68828bc4838.tar.gz cpython-784a3f53a8f78995d4c8ca22f612a68828bc4838.tar.bz2 |
Use proper function name in exception messages
Diffstat (limited to 'Lib/pickletools.py')
-rw-r--r-- | Lib/pickletools.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pickletools.py b/Lib/pickletools.py index 2f52f3b..152ea88 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( |