Permalink
Browse files

py3 fix for reading emu name, fixes #17

  • Loading branch information...
1 parent 5b45449 commit a3e78d79ddfdaac653aa1f5b8fb2532e45120039 @dskinner dskinner committed Feb 7, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 adbview.py
View
@@ -438,9 +438,9 @@ def run(self):
if device.startswith("emulator"):
port = int(device.rsplit("-")[-1])
t = telnetlib.Telnet("localhost", port)
- t.read_until("OK", 1000)
- t.write("avd name\n")
- product = t.read_until("OK", 1000)
+ t.read_until(b"OK", 1000)
+ t.write(b"avd name\n")
+ product = t.read_until(b"OK", 1000).decode("utf-8")
t.close()
product = product.replace("OK", "").strip()
else:

0 comments on commit a3e78d7

Please sign in to comment.