mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-06-28 20:17:26 +00:00
Don't open non-binary files as binary
* Don't pen the git config file, and the git ".lock" file as binary. Change-Id: I7b3939658456f2fd0a0500443cdd8d1ee1a4459d
This commit is contained in:
@ -46,7 +46,7 @@ if not is_python3():
|
||||
def _lwrite(path, content):
|
||||
lock = '%s.lock' % path
|
||||
|
||||
fd = open(lock, 'wb')
|
||||
fd = open(lock, 'w')
|
||||
try:
|
||||
fd.write(content)
|
||||
finally:
|
||||
|
Reference in New Issue
Block a user