lint: fix quoting style everywhere
BUG=chromium:990019
TEST=`cros lint` is clean & CQ passes
Change-Id: I012966d34a45a01b3a940414b24316aee4ffe8af
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/1731476
Reviewed-by: Chris McDonald <cjmcdonald@chromium.org>
Reviewed-by: Will Bradley <wbbradley@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
diff --git a/scripts/cros_sdk.py b/scripts/cros_sdk.py
index 6e06bb9..37b5016 100644
--- a/scripts/cros_sdk.py
+++ b/scripts/cros_sdk.py
@@ -868,7 +868,7 @@
if host != 'x86_64':
cros_build_lib.Die(
"cros_sdk is currently only supported on x86_64; you're running"
- " %s. Please find a x86_64 machine." % (host,))
+ ' %s. Please find a x86_64 machine.' % (host,))
_ReportMissing(osutils.FindMissingBinaries(NEEDED_TOOLS))
if options.proxy_sim:
@@ -920,8 +920,8 @@
if (options.delete and not options.create and
(options.enter or any_snapshot_operation)):
- parser.error("Trying to enter or snapshot the chroot when --delete "
- "was specified makes no sense.")
+ parser.error('Trying to enter or snapshot the chroot when --delete '
+ 'was specified makes no sense.')
if (options.unmount and
(options.create or options.enter or any_snapshot_operation)):
@@ -987,14 +987,14 @@
# below if needed.
if options.create and options.use_image:
if missing_image_tools:
- raise SystemExit('''The tool(s) %s were not found.
+ raise SystemExit("""The tool(s) %s were not found.
Please make sure the lvm2 and thin-provisioning-tools packages
are installed on your host.
Example(ubuntu):
sudo apt-get install lvm2 thin-provisioning-tools
If you want to run without lvm2, pass --nouse-image (chroot
-snapshots will be unavailable).''' % ', '.join(missing_image_tools))
+snapshots will be unavailable).""" % ', '.join(missing_image_tools))
logging.debug('Making sure chroot image is mounted.')
with cgroups.SimpleContainChildren('cros_sdk'):
@@ -1122,8 +1122,8 @@
osutils.SafeMakedirsNonRoot(target)
continue
lock.write_lock(
- "Upgrade to %r needed but chroot is locked; please exit "
- "all instances so this upgrade can finish." % src)
+ 'Upgrade to %r needed but chroot is locked; please exit '
+ 'all instances so this upgrade can finish.' % src)
if not os.path.exists(src):
# Note that while waiting for the write lock, src may've vanished;
# it's a rare race during the upgrade process that's a byproduct