Skip to content

Commit 6cadea3

Browse files
dpgeorgePaul Sokolovsky
authored andcommitted
webrepl_cli.py: Use empty bytes object as default fname, to pack 's'.
1 parent 1ad1c29 commit 6cadea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webrepl_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def read_resp(ws):
103103
return code
104104

105105

106-
def send_req(ws, op, sz=0, fname=""):
106+
def send_req(ws, op, sz=0, fname=b""):
107107
rec = struct.pack(WEBREPL_REQ_S, b"WA", op, 0, 0, sz, len(fname), fname)
108108
debugmsg("%r %d" % (rec, len(rec)))
109109
ws.write(rec)

0 commit comments

Comments
 (0)