From 9c2996b27f10a3111d08785a1c460f7305b4c652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Howard?= Date: Wed, 29 Mar 2017 09:11:02 +0200 Subject: [PATCH] correction of package.py (encoding on open instead of write) --- spacy/cli/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/package.py b/spacy/cli/package.py index 5cab2b4bc..6de2fd140 100644 --- a/spacy/cli/package.py +++ b/spacy/cli/package.py @@ -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():