mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-24 16:24:16 +03:00
correction of package.py (encoding on open instead of write)
This commit is contained in:
parent
aee7008513
commit
9c2996b27f
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue
Block a user