From 0410b6515691a2fd3410917849d32495490d6999 Mon Sep 17 00:00:00 2001 From: Zhizhou Yang Date: Tue, 14 Jan 2020 16:49:12 -0800 Subject: 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 Tested-by: Zhizhou Yang Auto-Submit: Zhizhou Yang Reviewed-by: George Burgess --- crosperf/download_images_buildid_test.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'crosperf/download_images_buildid_test.py') 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) -- cgit v1.2.3