Skip to content

Commit

Permalink
MAINT: remove python 3.4 branch (jupyter-server#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau authored Nov 8, 2022
1 parent 493f367 commit f6b732c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions jupyter_server/base/zmqhandlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import json
import re
import struct
import sys
from typing import Optional, no_type_check
from urllib.parse import urlparse

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

0 comments on commit f6b732c

Please sign in to comment.