From e6ee7e130f1d7487ea3aa08b552a2a4eec7696cc Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 15 Apr 2017 13:38:53 +0200 Subject: [PATCH] Fix parse package meta --- spacy/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/util.py b/spacy/util.py index c6946ce6e..219009f17 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -116,7 +116,7 @@ def check_renamed_kwargs(renamed, kwargs): def parse_package_meta(package_path, package, require=True): location = package_path / package / 'meta.json' if location.is_file(): - with io.open(location, encoding='utf8') as f: + with location.open('r', encoding='utf8') as f: meta = ujson.load(f) return meta elif require: