From 5de792874433952b023d4b67cb31eff991cca4aa Mon Sep 17 00:00:00 2001 From: Rusty Howell Date: Tue, 27 Feb 2018 10:38:14 -0700 Subject: [PATCH] Clarify code comment --- adb/adb_protocol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(