From 4bcf75773b028e2e8f69116c4967b42576a69d41 Mon Sep 17 00:00:00 2001 From: "E. Madison Bray" Date: Sun, 17 Mar 2019 16:10:43 +0100 Subject: [PATCH] On python 2 socket.create_connection requires the port to be an int --- adb/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/adb/common.py b/adb/common.py index 0c78728..bc59352 100644 --- a/adb/common.py +++ b/adb/common.py @@ -304,6 +304,7 @@ def __init__(self, serial, timeout_ms=None): if ':' in serial: self.host, self.port = serial.split(':') + self.port = int(self.port) else: self.host = serial self.port = 5555