changeset 38163:b39958d6b81b

extensions: remove strip_init=True from _disabledpaths() It's no longer used.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 03 May 2018 18:39:58 +0900
parents bdf344aea0ee
children aac4be30e250
files mercurial/extensions.py
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/extensions.py	Thu May 03 18:38:02 2018 +0900
+++ b/mercurial/extensions.py	Thu May 03 18:39:58 2018 +0900
@@ -540,9 +540,8 @@
         fn = getattr(fn, '_origfunc', None)
     return result
 
-def _disabledpaths(strip_init=False):
-    '''find paths of disabled extensions. returns a dict of {name: path}
-    removes /__init__.py from packages if strip_init is True'''
+def _disabledpaths():
+    '''find paths of disabled extensions. returns a dict of {name: path}'''
     import hgext
     extpath = os.path.dirname(
         os.path.abspath(pycompat.fsencode(hgext.__file__)))
@@ -561,8 +560,6 @@
             path = os.path.join(extpath, e, '__init__.py')
             if not os.path.exists(path):
                 continue
-            if strip_init:
-                path = os.path.dirname(path)
         if name in exts or name in _order or name == '__init__':
             continue
         exts[name] = path