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

Commit

Permalink
Clarify code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyhowell committed Feb 27, 2018
1 parent 25015a8 commit 5de7928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adb/adb_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5de7928

Please sign in to comment.