--- passlib/pwd.py.orig
+++ passlib/pwd.py
@@ -13,7 +13,7 @@
from collections import MutableMapping
from math import ceil, log as logf
import logging; log = logging.getLogger(__name__)
-import pkg_resources
+from importlib.resources import files
import os
# site
# pkg
@@ -122,7 +122,7 @@
if not sep:
raise ValueError("asset path must be absolute file path "
"or use 'pkg.name:sub/path' format: %r" % (path,))
- return pkg_resources.resource_stream(package, subpath)
+ return files(package).joinpath(subpath).open("rb")
#: type aliases