aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRahul Chaudhry <rahulchaudhry@chromium.org>2015-12-22 17:13:13 -0800
committerchrome-bot <chrome-bot@chromium.org>2015-12-28 22:37:22 +0000
commit6853c967e4ca04f609eb52daeb0ceca873f730dc (patch)
tree8496d5e943cbc4dc25abb350d533ff5276735676 /utils
parent9c59882cbda911cee0ecb908258ea3ee3cd2b6bc (diff)
downloadtoolchain-utils-6853c967e4ca04f609eb52daeb0ceca873f730dc.tar.gz
toolchain-utils: remove superfluous parentheses.
This CL fixes all superfluous-parens lint warnings. BUG=chromium:570458 TEST='crosperf/run_tests.sh' passes. Change-Id: I96cabd8e348787fbb86da221dd3d6f04ce210041 Reviewed-on: https://chrome-internal-review.googlesource.com/243097 Commit-Ready: Rahul Chaudhry <rahulchaudhry@google.com> Tested-by: Rahul Chaudhry <rahulchaudhry@google.com> Reviewed-by: Luis Lozano <llozano@chromium.org>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/buildbot_json.py2
-rw-r--r--utils/logger.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/utils/buildbot_json.py b/utils/buildbot_json.py
index 3b82ea76..cf8fcb30 100755
--- a/utils/buildbot_json.py
+++ b/utils/buildbot_json.py
@@ -663,7 +663,7 @@ class BuildSteps(NonAddressableNodeList):
@property
def keys(self):
"""Returns the steps name in order."""
- return [i['name'] for i in (self.data or [])]
+ return [i['name'] for i in self.data or []]
@property
def failed(self):
diff --git a/utils/logger.py b/utils/logger.py
index ca9e5f70..147f359d 100644
--- a/utils/logger.py
+++ b/utils/logger.py
@@ -96,20 +96,20 @@ class Logger(object):
def LogStartDots(self, print_to_console=True):
term_fd = self._GetStdout(print_to_console)
- if (term_fd):
+ if term_fd:
term_fd.flush()
term_fd.write('. ')
term_fd.flush()
def LogAppendDot(self, print_to_console=True):
term_fd = self._GetStdout(print_to_console)
- if (term_fd):
+ if term_fd:
term_fd.write('. ')
term_fd.flush()
def LogEndDots(self, print_to_console=True):
term_fd = self._GetStdout(print_to_console)
- if (term_fd):
+ if term_fd:
term_fd.write('\n')
term_fd.flush()