Skip to content

Commit

Permalink
change encoded wording to serialized in InsufficientDataException doc…
Browse files Browse the repository at this point in the history
…string
  • Loading branch information
vsergeev committed Oct 19, 2016
1 parent fbd5b76 commit 73ab43d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions umsgpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 73ab43d

Please sign in to comment.