aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2019-11-04 11:09:38 +0000
committerYousong Zhou <yszhou4tech@gmail.com>2019-11-04 11:12:23 +0000
commit5d6308ecaeaec303efe18ecabef93583bde6e3e4 (patch)
tree37cbf6dae8fa22f92ada1adbd8787ab68f353754
parent22c443c20cab4760b201ccd9995a4ed6053aa810 (diff)
downloadupstream-5d6308ecaeaec303efe18ecabef93583bde6e3e4.tar.gz
upstream-5d6308ecaeaec303efe18ecabef93583bde6e3e4.tar.bz2
upstream-5d6308ecaeaec303efe18ecabef93583bde6e3e4.zip
scripts/dl_github_archive.py: fix python3 str, bytes confusion
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> (cherry picked from commit d26738bc767f48d2dee7097cbfc6d07ffeee58fb)
-rwxr-xr-xscripts/dl_github_archive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dl_github_archive.py b/scripts/dl_github_archive.py
index 4bb7d131bb..1dc1c6ac9c 100755
--- 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, 'wb+') as f:
+ with os.fdopen(fileno, 'w+') as f:
try:
fcntl.lockf(fileno, fcntl.LOCK_EX)
self._cache_init(f)