diff options
| author | Chirayu Desai <chirayudesai1@gmail.com> | 2014-08-19 22:57:17 +0530 |
|---|---|---|
| committer | Chirayu Desai <chirayudesai1@gmail.com> | 2014-08-19 23:05:44 +0530 |
| commit | 303a82f33a1360036b6f70864d3099f9d803f2c7 (patch) | |
| tree | 8a6b2c95ac0b06886cabb3118c885d3b128da491 /project.py | |
| parent | a8d539189e1c788663f022cbebd3b5ff28aaeb4b (diff) | |
| download | git-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -46,7 +46,7 @@ if not is_python3(): | |||
| 46 | def _lwrite(path, content): | 46 | def _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: |
