Closed cardoso-neto closed 9 months ago
Fix could look like this for multibase.py
:
pkg_dir = importlib_resources.files("multiformats_config")
# then either joinpath
with pkg_dir.joinpath("multibase-table.json").open(encoding="utf8") as _table_f:
# or slash operator
with (pkg_dir / "multibase-table.json").open(encoding="utf8") as _table_f:
Thanks for spotting this! (and for the compliment 😊). We've only recently moved to 3.11 ourselves, and this library hasn't yet been migrated. We'll get to it shortly 👍.
I'm using python 3.11 and I'm getting these a lot:
And since I'm here, let me state that this is the best implementation of the multiformats protocol I've seen and it is only thanks to this package that I was able to get multiformats adopted where I work.