Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 2e299b8

Browse files
committed
On python 2 socket.create_connection requires the port to be an int
1 parent d9b94b2 commit 2e299b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adb/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ def __init__(self, serial, timeout_ms=None):
304304

305305
if ':' in serial:
306306
self.host, self.port = serial.split(':')
307+
self.port = int(self.port)
307308
else:
308309
self.host = serial
309310
self.port = 5555

0 commit comments

Comments
 (0)