Chromium Code Reviews| 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 |