chromite: Address some line-too-long lint errors.
Mostly these are pydoc firstline summaries.
This batch addresses those summaries that are >83 characters,
and can't be fixed by moving the terminating """ to a new line.
After this, pydoc summaries of single-line comments that are
<=83 characters are the only remaining things over 80 chars in
chromite.
BUG=b:233893248
TEST=cros lint + CQ
Change-Id: I67461d432bae19fc1448017d8c73ae3013ee1a1e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4542020
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Trent Apted <tapted@chromium.org>
Tested-by: Trent Apted <tapted@chromium.org>
diff --git a/scripts/cros_gdb.py b/scripts/cros_gdb.py
index cce7433..97e3486 100644
--- a/scripts/cros_gdb.py
+++ b/scripts/cros_gdb.py
@@ -152,7 +152,12 @@
return os.path.exists("/mnt/host/source/chromite/")
def IsLacros(self):
- """The --attach option specifies the type of if you want to attach to browser, renderer or gpu-process. Prefixed with either lacros-, ash- you can specify which browser you want to attach to. Default is ash."""
+ """Whether the Lacros chrome binary is in use.
+
+ The --attach option specifies the type of if you want to attach to
+ browser, renderer or gpu-process. Prefixed with either lacros- or ash-.
+ You can specify which browser you want to attach to. Default is ash.
+ """
return self.inf_cmd == self._LACROS_CHROME_REMOTE_BIN
def SimpleChromeGdb(self):
@@ -432,8 +437,8 @@
return
if self.remote_process_name:
- # Look for a process with the specified name on the remote device; if
- # found, get its pid. Strip off the lacros- or ash- part.
+ # Look for a process with the specified name on the remote device;
+ # if found, get its pid. Strip off the lacros- or ash- part.
pname = self.remote_process_name.lstrip("lacros-").lstrip("ash-")
if pname == "browser":
all_chrome_pids = set(device.GetRunningPids(self.inf_cmd))
@@ -718,7 +723,8 @@
default="",
help="Name of existing process to which to attach, on"
" remote device (remote debugging only)."
- 'Options are [browser, renderer, gpu-process] and can be prefixed with either "ash-" or "lacros-".',
+ "Options are [browser, renderer, gpu-process] and can be prefixed with"
+ ' either "ash-" or "lacros-".',
)
parser.add_argument(
"--cgdb",