Skip to content

Commit 0723ac5

Browse files
committed
#155 Update example(s)
1 parent 3d04f35 commit 0723ac5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/player/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def play(track_id_str: str):
127127
byte = stream.input_stream.stream().read(1)
128128
if byte == -1:
129129
return
130-
ffplay.stdin.write(bytes([byte]))
130+
ffplay.stdin.write(byte)
131131

132132

133133
def splash():

examples/server/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def response(client: socket.socket, uri: str, header: dict,
111111
stream.input_stream.stream().size()):
112112
break
113113
byte = stream.input_stream.stream().read(1)
114-
client.send(bytes([byte]))
114+
client.send(byte)
115115
return "", [], b"", True
116116
else:
117117
return HttpCode.http_404, [], HttpCode.http_404.encode(), False

0 commit comments

Comments
 (0)