diff --git a/kgdata/wikidata/db.py b/kgdata/wikidata/db.py index f24149a..cc0f220 100644 --- a/kgdata/wikidata/db.py +++ b/kgdata/wikidata/db.py @@ -279,7 +279,7 @@ def get_entity_redirection_db( readonly=read_only, options=dboptions, deser_key=partial(str, encoding="utf-8"), - deser_value=bytes.decode, + deser_value=partial(str, encoding="utf-8"), ser_value=str.encode, ) @@ -318,7 +318,7 @@ def get_wp2wd_db( options=dboptions, readonly=read_only, deser_key=partial(str, encoding="utf-8"), - deser_value=bytes.decode, + deser_value=partial(str, encoding="utf-8"), ser_value=str.encode, ) diff --git a/pyproject.toml b/pyproject.toml index e4813ec..4729b06 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "kgdata" -version = "2.3.1" +version = "2.3.2" description = "Library to process dumps of knowledge graphs (Wikipedia, DBpedia, Wikidata)" authors = ["Binh Vu "] license = "MIT"