Skip to content

Commit 73ab43d

Browse files
committed
change encoded wording to serialized in InsufficientDataException docstring
1 parent fbd5b76 commit 73ab43d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,10 @@ If a non-byte-string argument is passed to `umsgpack.unpackb()`, it will raise a
297297
>>>
298298
```
299299

300-
* `InsufficientDataException`: Insufficient data to unpack the encoded object.
300+
* `InsufficientDataException`: Insufficient data to unpack the serialized object.
301301

302302
``` python
303-
# Attempt to unpack a cut-off encoded 32-bit unsigned int
303+
# Attempt to unpack a cut-off serialized 32-bit unsigned int
304304
>>> umsgpack.unpackb(b"\xce\xff\xff\xff")
305305
...
306306
umsgpack.InsufficientDataException

umsgpack.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class UnsupportedTypeException(PackException):
146146

147147
# Unpacking error
148148
class InsufficientDataException(UnpackException):
149-
"Insufficient data to unpack the encoded object."
149+
"Insufficient data to unpack the serialized object."
150150
pass
151151
class InvalidStringException(UnpackException):
152152
"Invalid UTF-8 string encountered during unpacking."
@@ -716,7 +716,7 @@ def _unpack2(fp, **options):
716716
717717
Raises:
718718
InsufficientDataException(UnpackException):
719-
Insufficient data to unpack the encoded object.
719+
Insufficient data to unpack the serialized object.
720720
InvalidStringException(UnpackException):
721721
Invalid UTF-8 string encountered during unpacking.
722722
ReservedCodeException(UnpackException):
@@ -757,7 +757,7 @@ def _unpack3(fp, **options):
757757
758758
Raises:
759759
InsufficientDataException(UnpackException):
760-
Insufficient data to unpack the encoded object.
760+
Insufficient data to unpack the serialized object.
761761
InvalidStringException(UnpackException):
762762
Invalid UTF-8 string encountered during unpacking.
763763
ReservedCodeException(UnpackException):
@@ -801,7 +801,7 @@ def _unpackb2(s, **options):
801801
TypeError:
802802
Packed data type is neither 'str' nor 'bytearray'.
803803
InsufficientDataException(UnpackException):
804-
Insufficient data to unpack the encoded object.
804+
Insufficient data to unpack the serialized object.
805805
InvalidStringException(UnpackException):
806806
Invalid UTF-8 string encountered during unpacking.
807807
ReservedCodeException(UnpackException):
@@ -846,7 +846,7 @@ def _unpackb3(s, **options):
846846
TypeError:
847847
Packed data type is neither 'bytes' nor 'bytearray'.
848848
InsufficientDataException(UnpackException):
849-
Insufficient data to unpack the encoded object.
849+
Insufficient data to unpack the serialized object.
850850
InvalidStringException(UnpackException):
851851
Invalid UTF-8 string encountered during unpacking.
852852
ReservedCodeException(UnpackException):

0 commit comments

Comments
 (0)