mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-12 19:11:40 +01:00
scripts/dl_github_archive.py: fix python3 str, bytes confusion
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit d26738bc76)
This commit is contained in:
parent
22c443c20c
commit
5d6308ecae
1 changed files with 1 additions and 1 deletions
|
|
@ -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, 'wb+') as f:
|
||||
with os.fdopen(fileno, 'w+') as f:
|
||||
try:
|
||||
fcntl.lockf(fileno, fcntl.LOCK_EX)
|
||||
self._cache_init(f)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue