diff --git a/README.md b/README.md index 65a8f36..f446c12 100644 --- a/README.md +++ b/README.md @@ -297,10 +297,10 @@ If a non-byte-string argument is passed to `umsgpack.unpackb()`, it will raise a >>> ``` -* `InsufficientDataException`: Insufficient data to unpack the encoded object. +* `InsufficientDataException`: Insufficient data to unpack the serialized object. ``` python - # Attempt to unpack a cut-off encoded 32-bit unsigned int + # Attempt to unpack a cut-off serialized 32-bit unsigned int >>> umsgpack.unpackb(b"\xce\xff\xff\xff") ... umsgpack.InsufficientDataException diff --git a/umsgpack.py b/umsgpack.py index 77d2eba..1d6fd2d 100644 --- a/umsgpack.py +++ b/umsgpack.py @@ -146,7 +146,7 @@ class UnsupportedTypeException(PackException): # Unpacking error class InsufficientDataException(UnpackException): - "Insufficient data to unpack the encoded object." + "Insufficient data to unpack the serialized object." pass class InvalidStringException(UnpackException): "Invalid UTF-8 string encountered during unpacking." @@ -716,7 +716,7 @@ def _unpack2(fp, **options): Raises: InsufficientDataException(UnpackException): - Insufficient data to unpack the encoded object. + Insufficient data to unpack the serialized object. InvalidStringException(UnpackException): Invalid UTF-8 string encountered during unpacking. ReservedCodeException(UnpackException): @@ -757,7 +757,7 @@ def _unpack3(fp, **options): Raises: InsufficientDataException(UnpackException): - Insufficient data to unpack the encoded object. + Insufficient data to unpack the serialized object. InvalidStringException(UnpackException): Invalid UTF-8 string encountered during unpacking. ReservedCodeException(UnpackException): @@ -801,7 +801,7 @@ def _unpackb2(s, **options): TypeError: Packed data type is neither 'str' nor 'bytearray'. InsufficientDataException(UnpackException): - Insufficient data to unpack the encoded object. + Insufficient data to unpack the serialized object. InvalidStringException(UnpackException): Invalid UTF-8 string encountered during unpacking. ReservedCodeException(UnpackException): @@ -846,7 +846,7 @@ def _unpackb3(s, **options): TypeError: Packed data type is neither 'bytes' nor 'bytearray'. InsufficientDataException(UnpackException): - Insufficient data to unpack the encoded object. + Insufficient data to unpack the serialized object. InvalidStringException(UnpackException): Invalid UTF-8 string encountered during unpacking. ReservedCodeException(UnpackException):