We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 493f367 commit f6b732cCopy full SHA for f6b732c
jupyter_server/base/zmqhandlers.py
@@ -4,7 +4,6 @@
4
import json
5
import re
6
import struct
7
-import sys
8
from typing import Optional, no_type_check
9
from urllib.parse import urlparse
10
@@ -42,8 +41,6 @@ def serialize_binary_message(msg):
42
41
# don't modify msg or buffer list in-place
43
msg = msg.copy()
44
buffers = list(msg.pop("buffers"))
45
- if sys.version_info < (3, 4):
46
- buffers = [x.tobytes() for x in buffers]
47
bmsg = json.dumps(msg, default=json_default).encode("utf8")
48
buffers.insert(0, bmsg)
49
nbufs = len(buffers)
0 commit comments