Skip to content

Commit f6b732c

Browse files
authored
MAINT: remove python 3.4 branch (#1061)
1 parent 493f367 commit f6b732c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

jupyter_server/base/zmqhandlers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import json
55
import re
66
import struct
7-
import sys
87
from typing import Optional, no_type_check
98
from urllib.parse import urlparse
109

@@ -42,8 +41,6 @@ def serialize_binary_message(msg):
4241
# don't modify msg or buffer list in-place
4342
msg = msg.copy()
4443
buffers = list(msg.pop("buffers"))
45-
if sys.version_info < (3, 4):
46-
buffers = [x.tobytes() for x in buffers]
4744
bmsg = json.dumps(msg, default=json_default).encode("utf8")
4845
buffers.insert(0, bmsg)
4946
nbufs = len(buffers)

0 commit comments

Comments
 (0)