8000 don't capitalize · msgpack/msgpack-python@05e6be9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 05e6be9

Browse files
committed
don't capitalize
< 8000 pre class="color-fg-muted d-flex flex-items-center">1 parent 1b463f8 commit 05e6be9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

msgpack/_packer.pyx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ cdef class Packer(object):
187187
elif PyBytesLike_CheckExact(o) if strict_types else PyBytesLike_Check(o):
188188
L = len(o)
189189
if L > ITEM_LIMIT:
190-
raise PackValueError("%s is too large"
191-
% type(o).__name__.capitalize())
190+
raise PackValueError("%s is too large" % type(o).__name__)
192191
rawval = o
193192
ret = msgpack_pack_bin(&self.pk, L)
194193
if ret == 0:

msgpack/fallback.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,8 +733,7 @@ def _pack(self, obj, nest_limit=DEFAULT_RECURSE_LIMIT,
733733
if check(obj, (bytes, bytearray)):
734734
n = len(obj)
735735
if n >= 2**32:
736-
raise PackValueError("%s is too large"
737-
% type(obj).__name__.capitalize())
736+
raise PackValueError("%s is too large" % type(obj).__name__)
738737
self._pack_bin_header(n)
739738
return self._buffer.write(obj)
740739
if check(obj, Unicode):

0 commit comments

Comments
 (0)
0