aboutsummaryrefslogtreecommitdiff
path: root/crosperf/download_images_buildid_test.py
diff options
context:
space:
mode:
authorZhizhou Yang <zhizhouy@google.com>2020-01-14 16:49:12 -0800
committerCommit Bot <commit-bot@chromium.org>2020-01-16 03:36:24 +0000
commit0410b6515691a2fd3410917849d32495490d6999 (patch)
treef456416e7706148c2505789bc51f3966c50b071c /crosperf/download_images_buildid_test.py
parentc977ae00dfd11ebd7c9212b04d0cf1808ea9bfc6 (diff)
downloadtoolchain-utils-0410b6515691a2fd3410917849d32495490d6999.tar.gz
crosperf: fix pylint for crosperf
This is the first step of python 3 migration for crosperf TEST=Passed presubmit for all .py files in crosperf BUG=chromium:1011676 Change-Id: I615d0323c81ba688c8ce2aa0cac307035d0b882b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2001696 Commit-Queue: Zhizhou Yang <zhizhouy@google.com> Tested-by: Zhizhou Yang <zhizhouy@google.com> Auto-Submit: Zhizhou Yang <zhizhouy@google.com> Reviewed-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'crosperf/download_images_buildid_test.py')
-rwxr-xr-xcrosperf/download_images_buildid_test.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/crosperf/download_images_buildid_test.py b/crosperf/download_images_buildid_test.py
index 3e7f00c1..a376691c 100755
--- a/crosperf/download_images_buildid_test.py
+++ b/crosperf/download_images_buildid_test.py
@@ -1,6 +1,9 @@
#!/usr/bin/env python2
-#
-# Copyright 2014 Google Inc. All Rights Reserved
+# -*- coding: utf-8 -*-
+# Copyright 2014 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
"""Test translation of xbuddy names."""
from __future__ import print_function
@@ -10,12 +13,12 @@ import sys
import download_images
-#On May 1, 2014:
-#latest : lumpy-release/R34-5500.132.0
-#latest-beta : lumpy-release/R35-5712.43.0
-#latest-official: lumpy-release/R36-5814.0.0
-#latest-dev : lumpy-release/R36-5814.0.0
-#latest-canary : lumpy-release/R36-5814.0.0
+# On May 1, 2014:
+# latest : lumpy-release/R34-5500.132.0
+# latest-beta : lumpy-release/R35-5712.43.0
+# latest-official: lumpy-release/R36-5814.0.0
+# latest-dev : lumpy-release/R36-5814.0.0
+# latest-canary : lumpy-release/R36-5814.0.0
class ImageDownloaderBuildIDTest(object):
@@ -55,7 +58,7 @@ class ImageDownloaderBuildIDTest(object):
sys.exit(1)
def assertIsNotNone(self, arg, arg_name):
- if arg == None:
+ if arg is None:
self.tests_failed = self.tests_failed + 1
self.assert_failure('%s is not None' % arg_name)