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

Commit ee2d54e

Browse files
greateggsgregfahhem
authored andcommitted
Bugfix/interactive shell none delim (#92)
* Bugfix for when the caller passes None as the delimiter to InteractiveShellCommand
1 parent 76315aa commit ee2d54e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adb/adb_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def InteractiveShellCommand(cls, conn, cmd=None, strip_cmd=True, delim=None, str
451451
The stdout from the shell command.
452452
"""
453453

454-
if not isinstance(delim, bytes):
454+
if delim is not None and not isinstance(delim, bytes):
455455
delim = delim.encode('utf-8')
456456

457457
# Delimiter may be shell@hammerhead:/ $

0 commit comments

Comments
 (0)