Mercurial > hg
diff mercurial/extensions.py @ 43705:1ea33dff7841
extensions: hide two confusing import statements from pytype
Differential Revision: https://phab.mercurial-scm.org/D7408
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 14 Nov 2019 15:49:01 -0500 |
parents | 9f70512ae2cf |
children | da5ccc591cff |
line wrap: on
line diff
--- a/mercurial/extensions.py Thu Nov 14 13:27:57 2019 -0500 +++ b/mercurial/extensions.py Thu Nov 14 15:49:01 2019 -0500 @@ -781,7 +781,7 @@ def disabled(): '''find disabled extensions from hgext. returns a dict of {name: desc}''' try: - from hgext import __index__ + from hgext import __index__ # pytype: disable=import-error return dict( (name, gettext(desc)) @@ -807,7 +807,7 @@ def disabledext(name): '''find a specific disabled extension from hgext. returns desc''' try: - from hgext import __index__ + from hgext import __index__ # pytype: disable=import-error if name in _order: # enabled return