Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: scripts/run_cmd.py

Issue 199463002: Fix __dict__ (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/run_cmd.py
diff --git a/scripts/run_cmd.py b/scripts/run_cmd.py
index 247c9a638f28597deb8bd9a18720ebc0dce219b9..81710766c230fec49ab68d4308b999f2e6cfd661 100755
--- a/scripts/run_cmd.py
+++ b/scripts/run_cmd.py
@@ -72,7 +72,7 @@ class CommandResults(collections.namedtuple('CommandResults',
Since collections.NamedTuple.__dict__ returns an OrderedDict, we have to
create this wrapper to get a normal dict.
"""
- return dict(super(CommandResults, self).__dict__)
+ return dict(self._asdict())
def print_results(self, pretty=False):
"""Print the results of a command.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698