Commit d26738bc authored by Yousong Zhou's avatar Yousong Zhou

scripts/ fix python3 str, bytes confusion

Signed-off-by: default avatarYousong Zhou <>
parent a5428d8c
......@@ -177,7 +177,7 @@ class GitHubCommitTsCache(object):
def set(self, k, v):
"""Update timestamp with ``k``."""
fileno =, os.O_RDWR | os.O_CREAT)
with os.fdopen(fileno, 'wb+') as f:
with os.fdopen(fileno, 'w+') as f:
fcntl.lockf(fileno, fcntl.LOCK_EX)
......@@ -203,7 +203,7 @@ class GitHubCommitTsCache(object):
ts = ent[0]
updated = ent[1]
line = '{0} {1} {2}\n'.format(k, ts, updated)
class DownloadGitHubTarball(object):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment