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

Unified Diff: recipe_modules/raw_io/api.py

Issue 2750793002: [json] improve output to get leak_to and better logging. (Closed)
Patch Set: fixit Created 3 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 | « recipe_modules/json/test_api.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/raw_io/api.py
diff --git a/recipe_modules/raw_io/api.py b/recipe_modules/raw_io/api.py
index ce3d5f587c12b38ccf7e6b828cfb0d32883bbca3..bf755399326de05a677a01fe05db62548d0a427c 100644
--- a/recipe_modules/raw_io/api.py
+++ b/recipe_modules/raw_io/api.py
@@ -94,7 +94,7 @@ class OutputDataPlaceholder(recipe_util.OutputPlaceholder):
assert self._backing_file
if test.enabled:
self._backing_file = None
- return self.decode(test.data)
+ return self.decode(test.data or '')
else: # pragma: no cover
try:
with open(self._backing_file, 'rb') as f:
« no previous file with comments | « recipe_modules/json/test_api.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698