mercurial/__init__.py
changeset 42574 d28d91f9f35a
parent 42207 7ed472e79096
child 42603 3018749a71bb
equal deleted inserted replaced
42573:9ac1a5a4a64f 42574:d28d91f9f35a
    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