projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
wireless-regdb: backport three upstream fixes
[librecmc/librecmc.git]
/
scripts
/
dl_github_archive.py
diff --git
a/scripts/dl_github_archive.py
b/scripts/dl_github_archive.py
index 6c778794f91704df9e6bf98bda487b4dd65e45f8..aa7840066bcfdd2e0d06863297a7b4a42d3a06f9 100755
(executable)
--- a/
scripts/dl_github_archive.py
+++ b/
scripts/dl_github_archive.py
@@
-177,7
+177,7
@@
class GitHubCommitTsCache(object):
def set(self, k, v):
"""Update timestamp with ``k``."""
fileno = os.open(self.cachef, os.O_RDWR | os.O_CREAT)
- with os.fdopen(fileno, 'w
b
+') as f:
+ with os.fdopen(fileno, 'w+') as f:
try:
fcntl.lockf(fileno, fcntl.LOCK_EX)
self._cache_init(f)