summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorChirayu Desai <chirayudesai1@gmail.com>2014-08-19 22:57:17 +0530
committerChirayu Desai <chirayudesai1@gmail.com>2014-08-19 23:05:44 +0530
commit303a82f33a1360036b6f70864d3099f9d803f2c7 (patch)
tree8a6b2c95ac0b06886cabb3118c885d3b128da491 /project.py
parenta8d539189e1c788663f022cbebd3b5ff28aaeb4b (diff)
downloadgit-repo-303a82f33a1360036b6f70864d3099f9d803f2c7.tar.gz
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
Diffstat (limited to 'project.py')
-rw-r--r--project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/project.py b/project.py
index 460bf315..95403ccb 100644
--- a/project.py
+++ b/project.py
@@ -46,7 +46,7 @@ if not is_python3():
46def _lwrite(path, content): 46def _lwrite(path, content):
47 lock = '%s.lock' % path 47 lock = '%s.lock' % path
48 48
49 fd = open(lock, 'wb') 49 fd = open(lock, 'w')
50 try: 50 try:
51 fd.write(content) 51 fd.write(content)
52 finally: 52 finally: