equal
deleted
inserted
replaced
27 |
27 |
28 class hgpathentryfinder(importlib.abc.MetaPathFinder): |
28 class hgpathentryfinder(importlib.abc.MetaPathFinder): |
29 """A sys.meta_path finder that uses a custom module loader.""" |
29 """A sys.meta_path finder that uses a custom module loader.""" |
30 def find_spec(self, fullname, path, target=None): |
30 def find_spec(self, fullname, path, target=None): |
31 # Only handle Mercurial-related modules. |
31 # Only handle Mercurial-related modules. |
32 if not fullname.startswith(('mercurial.', 'hgext.', 'hgext3rd.')): |
32 if not fullname.startswith(('mercurial.', 'hgext.')): |
33 return None |
33 return None |
34 # don't try to parse binary |
34 # don't try to parse binary |
35 if fullname.startswith('mercurial.cext.'): |
35 if fullname.startswith('mercurial.cext.'): |
36 return None |
36 return None |
37 # third-party packages are expected to be dual-version clean |
37 # third-party packages are expected to be dual-version clean |