From c3a9f738960356dc395a789b786aa095bdad8e4f Mon Sep 17 00:00:00 2001 From: ines Date: Tue, 21 Mar 2017 12:35:22 +0100 Subject: [PATCH] Fix writing to file --- 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 b4dc76e9a..5cab2b4bc 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.write_text(contents, encoding='utf-8') + file_path.open('w').write(contents, encoding='utf-8') def generate_meta():