Meta importers without find_spec are deprecated and will no longer work in future versions of Python. The IpaMetaImporter does not implement the new API, only the deprecated API from Python 3.4. This leads to a warning:
find_spec
IpaMetaImporter
ImportWarning: IpaMetaImporter.find_spec() not found; falling back to find_module()
A trivial find_specmethod implementation loads the module and return its spec:
def find_spec(self, fullname, path=None, target=None): """Meta importer hook""" if fullname in self.modules: module = self.load_module(fullname) return module.__spec__ return None
Metadata Update from @cheimes: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/6984
master:
ipa-4-11:
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.