Show More
@@ -842,8 +842,11 b' class Session(Configurable):' | |||
|
842 | 842 | message['content'] = self.unpack(msg_list[4]) |
|
843 | 843 | else: |
|
844 | 844 | message['content'] = msg_list[4] |
|
845 | ||
|
846 | message['buffers'] = msg_list[5:] | |
|
845 | buffers = [memoryview(b) for b in msg_list[5:]] | |
|
846 | if buffers and buffers[0].shape is None: | |
|
847 | # force copy to workaround pyzmq #646 | |
|
848 | buffers = [memoryview(b.bytes) for b in msg_list[5:]] | |
|
849 | message['buffers'] = buffers | |
|
847 | 850 | # adapt to the current version |
|
848 | 851 | return adapt(message) |
|
849 | 852 |
General Comments 0
You need to be logged in to leave comments.
Login now