mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-10 15:38:35 +02:00
encode the cache content in utf8
This commit is contained in:
@@ -274,7 +274,7 @@ class Anonymous_Github:
|
|||||||
if not os.path.exists(os.path.dirname(content_cache_path)):
|
if not os.path.exists(os.path.dirname(content_cache_path)):
|
||||||
os.makedirs(os.path.dirname(content_cache_path))
|
os.makedirs(os.path.dirname(content_cache_path))
|
||||||
with open(content_cache_path, 'w') as f:
|
with open(content_cache_path, 'w') as f:
|
||||||
f.write(content)
|
f.write(content.encode('utf8'))
|
||||||
return content
|
return content
|
||||||
|
|
||||||
def is_website(path, repository_config, g_repo):
|
def is_website(path, repository_config, g_repo):
|
||||||
|
|||||||
Reference in New Issue
Block a user