Skip to content

Commit 85557fb

Browse files
author
Paul Sokolovsky
committed
webrepl_cli: Fixes to login() for Python3 compatibility, etc.
1 parent 4b760b6 commit 85557fb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

webrepl_cli.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,11 @@ def ioctl(self, req, val):
8989
def login(ws):
9090
while True:
9191
c = ws.read(1, text_ok=True)
92-
print(c)
9392
if c == b":":
9493
assert ws.read(1, text_ok=True) == b" "
9594
break
9695
passwd = getpass.getpass()
97-
ws.write(passwd + b"\r")
96+
ws.write(passwd.encode("utf-8") + b"\r")
9897

9998
def read_resp(ws):
10099
data = ws.read(4)

0 commit comments

Comments
 (0)