Merge "Replace find_module function"

This commit is contained in:
Zuul 2024-01-07 07:29:28 +00:00 committed by Gerrit Code Review
commit e8c5d7093a
1 changed files with 1 additions and 1 deletions

View File

@ -45,6 +45,6 @@ class _NoModuleFinder(object):
def __init__(self, module):
self.module = module
def find_module(self, fullname, path):
def find_spec(self, fullname, path, target):
if fullname == self.module or fullname.startswith(self.module + '.'):
raise ImportError