correction of package.py (encoding on open instead of write)

This commit is contained in:
Grégory Howard 2017-03-29 09:11:02 +02:00
parent aee7008513
commit 9c2996b27f

View File

@ -58,7 +58,7 @@ def create_dirs(package_path, force):
def create_file(file_path, contents):
file_path.touch()
file_path.open('w').write(contents, encoding='utf-8')
file_path.open('w', encoding='utf-8').write(contents)
def generate_meta():