diff options
-rw-r--r-- | project.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -62,7 +62,8 @@ RETRY_JITTER_PERCENT = 0.1 | |||
62 | def _lwrite(path, content): | 62 | def _lwrite(path, content): |
63 | lock = '%s.lock' % path | 63 | lock = '%s.lock' % path |
64 | 64 | ||
65 | with open(lock, 'w') as fd: | 65 | # Maintain Unix line endings on all OS's to match git behavior. |
66 | with open(lock, 'w', newline='\n') as fd: | ||
66 | fd.write(content) | 67 | fd.write(content) |
67 | 68 | ||
68 | try: | 69 | try: |