mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
Merge pull request #936 from Gregory-Howard/package
correction of package.py (encoding on open instead of write)
This commit is contained in:
commit
21dfe9edbe
|
@ -58,7 +58,7 @@ def create_dirs(package_path, force):
|
||||||
|
|
||||||
def create_file(file_path, contents):
|
def create_file(file_path, contents):
|
||||||
file_path.touch()
|
file_path.touch()
|
||||||
file_path.open('w').write(contents, encoding='utf-8')
|
file_path.open('w', encoding='utf-8').write(contents)
|
||||||
|
|
||||||
|
|
||||||
def generate_meta():
|
def generate_meta():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user