mirror of https://github.com/explosion/spaCy.git
Fix parse package meta
This commit is contained in:
parent
1a98e48b8e
commit
e6ee7e130f
|
@ -116,7 +116,7 @@ def check_renamed_kwargs(renamed, kwargs):
|
||||||
def parse_package_meta(package_path, package, require=True):
|
def parse_package_meta(package_path, package, require=True):
|
||||||
location = package_path / package / 'meta.json'
|
location = package_path / package / 'meta.json'
|
||||||
if location.is_file():
|
if location.is_file():
|
||||||
with io.open(location, encoding='utf8') as f:
|
with location.open('r', encoding='utf8') as f:
|
||||||
meta = ujson.load(f)
|
meta = ujson.load(f)
|
||||||
return meta
|
return meta
|
||||||
elif require:
|
elif require:
|
||||||
|
|
Loading…
Reference in New Issue