diff --git a/adb/adb_protocol.py b/adb/adb_protocol.py index 3a729e4..7d95510 100644 --- a/adb/adb_protocol.py +++ b/adb/adb_protocol.py @@ -277,8 +277,8 @@ def Connect(cls, usb, banner=b'notadb', rsa_keys=None, auth_timeout_ms=100): InvalidResponseError: When the device does authentication in an unexpected way. """ - # In py3/py2, convert unicode/str to bytes. It's joined into a byte string. - # In py2, this ends up kind of being a no-op. + # In py3, convert unicode to bytes. In py2, convert str to bytes. + # It's later joined into a byte string, so in py2, this ends up kind of being a no-op. if isinstance(banner, str): banner = bytearray(banner, 'utf-8') msg = cls(