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

Unified Diff: scripts/slave/recipe_modules/gclient/api.py

Issue 23889036: Refactor the way that TestApi works so that it is actually useful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Move gclient test_api to got_revisions cl Created 7 years, 3 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
Index: scripts/slave/recipe_modules/gclient/api.py
diff --git a/scripts/slave/recipe_modules/gclient/api.py b/scripts/slave/recipe_modules/gclient/api.py
index 1f16721a24ef651dad001ae68d4df71f12072d23..0f19e429024253dbc9d7794ed864888487ae627a 100644
--- a/scripts/slave/recipe_modules/gclient/api.py
+++ b/scripts/slave/recipe_modules/gclient/api.py
@@ -18,7 +18,9 @@ def jsonish_to_python(spec, is_top=False):
if isinstance(spec, dict):
ret += '{'
ret += ', '.join(
- "%s: %s" % (repr(str(k)), jsonish_to_python(spec[k])) for k in sorted(spec))
+ "%s: %s" % (repr(str(k)), jsonish_to_python(spec[k]))
+ for k in sorted(spec)
+ )
ret += '}'
elif isinstance(spec, list):
ret += '['

Powered by Google App Engine
This is Rietveld 408576698