projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ath79: add support for TP-Link Archer C60 v3
[openwrt/openwrt.git]
/
scripts
/
dl_github_archive.py
diff --git
a/scripts/dl_github_archive.py
b/scripts/dl_github_archive.py
index 4bb7d131bb8303e397649fddbf63e1df96b20b18..1dc1c6ac9cd72a321d1e7ddd203535c1fd86dc9f 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)