From 34da9b80e2858b6ed6f76c9a23be6ce7df580ace Mon Sep 17 00:00:00 2001 From: Rahul Chaudhry Date: Fri, 29 Jul 2016 14:49:31 -0700 Subject: toolchain-utils: fix *-docstring-* lint errors. BUG=chromium:632109 TEST='./run_tests.py passes' Change-Id: I008ad5784bf58fdf58c92f7246862a8e141b4cb0 Reviewed-on: https://chrome-internal-review.googlesource.com/272173 Commit-Ready: Rahul Chaudhry Tested-by: Rahul Chaudhry Reviewed-by: Caroline Tice --- crosperf/download_images_buildid_test.py | 5 +++-- crosperf/image_checksummer.py | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crosperf/download_images_buildid_test.py b/crosperf/download_images_buildid_test.py index 6069e9ba..469c0718 100755 --- a/crosperf/download_images_buildid_test.py +++ b/crosperf/download_images_buildid_test.py @@ -1,6 +1,7 @@ #!/usr/bin/python2 # # Copyright 2014 Google Inc. All Rights Reserved +"""Test translation of xbuddy names.""" from __future__ import print_function @@ -18,6 +19,7 @@ import download_images class ImageDownloaderBuildIDTest(object): + """Test translation of xbuddy names.""" def __init__(self): parser = optparse.OptionParser() @@ -84,8 +86,7 @@ class ImageDownloaderBuildIDTest(object): self.tests_passed = self.tests_passed + 1 def test_get_build_id(self): - """Test that the actual translating of xbuddy names is working properly. - """ + """Test that the actual translating of xbuddy names is working properly.""" downloader = download_images.ImageDownloader(log_level='quiet') self.test_one_id(downloader, 'remote/lumpy/latest-dev', 'lumpy-release/R', diff --git a/crosperf/image_checksummer.py b/crosperf/image_checksummer.py index 2afd8d5d..e330084e 100644 --- a/crosperf/image_checksummer.py +++ b/crosperf/image_checksummer.py @@ -1,4 +1,5 @@ # Copyright 2011 Google Inc. All Rights Reserved. +"""Compute image checksum.""" from __future__ import print_function @@ -10,8 +11,10 @@ from cros_utils.file_utils import FileUtils class ImageChecksummer(object): + """Compute image checksum.""" class PerImageChecksummer(object): + """Compute checksum for an image.""" def __init__(self, label, log_level): self._lock = threading.Lock() -- cgit v1.2.3