finder.find_spec(). If find_spec() exists then backwards-compatible functionality is provided for this method. z‹MetaPathFinder.find_module() is deprecated since Python 3.4 in favor of MetaPathFinder.find_spec() and is slated for removal in Python 3.12é