[issue35319] pkgutil.get_data() is a wrapper for a deprecated class

2018-11-27 Thread Brett Cannon
Brett Cannon added the comment: You can use importlib.resources to read data files and such from within a package as an alternative. -- nosy: +brett.cannon ___ Python tracker ___

[issue35319] pkgutil.get_data() is a wrapper for a deprecated class

2018-11-26 Thread Kevin Norris
New submission from Kevin Norris : pkgutil.get_data()'s documentation[1] says it is a wrapper for importlib.abc.ResourceLoader.get_data(), but the latter's documentation[2] says the whole class is deprecated since 3.7. Please either: A. Formally deprecate pkgutil.get_data() (and ideally prov