We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b60399 commit b86a1b8Copy full SHA for b86a1b8
1 file changed
msgpack/fallback.py
@@ -128,7 +128,8 @@ def unpackb(packed, **kwargs):
128
129
if sys.version < (2, 7, 6):
130
def _unpack_from(f, b, o=0):
131
- return struct.unpack_from(f, bytes(b[:o+2]), o)
+ """Explicit typcast for legacy struct.unpack_from"""
132
+ return struct.unpack_from(f, bytes(b), o)
133
else:
134
_unpack_from = struct.unpack_from
135
0 commit comments