mirror of
				https://github.com/optim-enterprises-bv/openwrt-ipq.git
				synced 2025-10-31 10:18:28 +00:00 
			
		
		
		
	scripts/dl_github_archive.py: fix python3 str, bytes confusion
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
		| @@ -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) | ||||
| @@ -203,7 +203,7 @@ class GitHubCommitTsCache(object): | ||||
|             ts = ent[0] | ||||
|             updated = ent[1] | ||||
|             line = '{0} {1} {2}\n'.format(k, ts, updated) | ||||
|             fout.write(line.encode('utf-8')) | ||||
|             fout.write(line) | ||||
|  | ||||
|  | ||||
| class DownloadGitHubTarball(object): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yousong Zhou
					Yousong Zhou