Patchwork D7408: extensions: hide two confusing import statements from pytype

login
register
mail settings
Submitter phabricator
Date Nov. 19, 2019, 3:50 a.m.
Message ID <eafe0ca2d507f9629c928f54462ed6d7@localhost.localdomain>
Download mbox | patch
Permalink /patch/43345/
State Not Applicable
Headers show

Comments

phabricator - Nov. 19, 2019, 3:50 a.m.
Closed by commit rHG1ea33dff7841: extensions: hide two confusing import statements from pytype (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7408?vs=18101&id=18228

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7408/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7408

AFFECTED FILES
  mercurial/extensions.py

CHANGE DETAILS




To: durin42, #hg-reviewers, dlax, indygreg
Cc: indygreg, dlax, mercurial-devel

Patch

diff --git a/mercurial/extensions.py b/mercurial/extensions.py
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -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