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

Unified Diff: trychange.py

Issue 228883004: Allow trychange to submit empty patch sets again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 8 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: trychange.py
diff --git a/trychange.py b/trychange.py
index f352243a92ff49d6ec40f8582a22b3aadff16d8a..68a84e4ee6e35cd001f6cbfd562e075151625509 100755
--- a/trychange.py
+++ b/trychange.py
@@ -500,7 +500,7 @@ def _TempFilename(name, contents=None):
temp_dir = tempfile.mkdtemp(prefix=name)
try:
path = os.path.join(temp_dir, name)
- if contents:
+ if contents is not None:
with open(path, 'wb') as f:
f.write(contents)
yield path
« 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