mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-22 05:13:17 +00:00
parent
b10cf78f54
commit
5f684aed82
1 changed files with 7 additions and 0 deletions
|
@ -100,6 +100,13 @@ def _get_data_from_buffer(obj):
|
|||
return view
|
||||
|
||||
|
||||
# Jython's memoryview support is incomplete
|
||||
# See https://github.com/msgpack/msgpack-python/issues/303
|
||||
_is_jython = sys.platform.startswith('java')
|
||||
if _is_jython:
|
||||
_get_data_from_buffer = bytes
|
||||
|
||||
|
||||
def unpack(stream, **kwargs):
|
||||
warnings.warn(
|
||||
"Direct calling implementation's unpack() is deprecated, Use msgpack.unpack() or unpackb() instead.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue