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

Commit

Permalink
On python 2 socket.create_connection requires the port to be an int
Browse files Browse the repository at this point in the history
  • Loading branch information
embray committed Mar 17, 2019
1 parent d9b94b2 commit 2e299b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adb/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e299b8

Please sign in to comment.