fix: unittest

This commit is contained in:
debugtalk
2020-01-03 18:35:38 +08:00
parent 286dc3f7d5
commit 196d7e3221

View File

@@ -383,7 +383,7 @@ def create_scaffold(project_name):
logger.color_print(msg, "BLUE")
def create_file(path, file_content=""):
with open(path, 'w', encoding='utf-8') as f:
with io.open(path, 'w', encoding='utf-8') as f:
f.write(file_content)
msg = "created file: {}".format(path)
logger.color_print(msg, "BLUE")