tweak docstrings
This fixes section names:
Arguments -> Args
Return -> Returns
It also fixes the last line of the docstring so it isn't cuddled.
And we fix a few docstrings that should be one line but aren't.
BUG=None
TEST=`./buildbot/run_tests` passes
Change-Id: Iaafb7d346a3aee97a40dab340463894c02533091
Reviewed-on: https://chromium-review.googlesource.com/176279
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
diff --git a/scripts/deploy_chrome.py b/scripts/deploy_chrome.py
index d24600d..ff54db0 100644
--- a/scripts/deploy_chrome.py
+++ b/scripts/deploy_chrome.py
@@ -78,7 +78,7 @@
def __init__(self, options, tempdir, staging_dir):
"""Initialize the class.
- Arguments:
+ Args:
options: Optparse result structure.
tempdir: Scratch space for the class. Caller has responsibility to clean
it up.
@@ -185,7 +185,7 @@
If the command fails, and error_code_ok is True, then this function sets
self._rootfs_is_still_readonly.
- Arguments:
+ Args:
error_code_ok: See remote.RemoteAccess.RemoteSh for details.
"""
result = self.host.RemoteSh(MOUNT_RW_COMMAND, error_code_ok=error_code_ok)
@@ -203,7 +203,7 @@
def _CheckDeviceFreeSpace(self, device_info):
"""See if target device has enough space for Chrome.
- Arguments:
+ Args:
device_info: A DeviceInfo named tuple.
"""
effective_free = device_info.target_dir_size + device_info.target_fs_free
@@ -443,7 +443,8 @@
def _FetchChromePackage(cache_dir, tempdir, gs_path):
"""Get the chrome prebuilt tarball from GS.
- Returns: Path to the fetched chrome tarball.
+ Returns:
+ Path to the fetched chrome tarball.
"""
gs_ctx = gs.GSContext(cache_dir=cache_dir, init_boto=True)
files = gs_ctx.LS(gs_path).output.splitlines()