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

Commit 4e29501

Browse files
committed
Comment style changes requested in PR review
1 parent 43ee205 commit 4e29501

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

adb/fastboot.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def HandleDataSending(self, source_file, source_len,
124124
FastbootInvalidResponse: Fastboot responded with an unknown packet type.
125125
126126
Returns:
127-
Tuple - OKAY packet's message, List of preceding Fastboot Messages
127+
tuple (OKAY packet's message, List of preceding Fastboot Messages)
128128
"""
129129
accepted_size, _msgs = self._AcceptResponses(
130130
b'DATA', info_cb, timeout_ms=timeout_ms)
@@ -152,7 +152,7 @@ def _AcceptResponses(self, expected_header, info_cb, timeout_ms=None):
152152
FastbootInvalidResponse: Fastboot responded with an unknown packet type.
153153
154154
Returns:
155-
Tuple - OKAY packet's message, List of preceding Fastboot Messages
155+
tuple (OKAY packet's message, List of preceding Fastboot Messages)
156156
"""
157157

158158
messages = []
@@ -413,11 +413,13 @@ def RebootBootloader(self, timeout_ms=None):
413413
return self._SimpleCommand(b'reboot-bootloader', timeout_ms=timeout_ms)
414414

415415
def Boot(self, source_file):
416-
"""
417-
Fastboot boot image by sending image from local file system then issuing the boot command
416+
"""Fastboot boot image by sending image from local file system then issuing the boot command
417+
418+
Args:
419+
source_file: String file path to the image to send and boot
418420
419-
:param source_file:
420-
:return:
421+
Returns:
422+
None
421423
"""
422424

423425
if not os.path.exists(source_file):

0 commit comments

Comments
 (0)