Show More
@@ -540,9 +540,8 b' def getwrapperchain(container, funcname)' | |||
|
540 | 540 | fn = getattr(fn, '_origfunc', None) |
|
541 | 541 | return result |
|
542 | 542 | |
|
543 |
def _disabledpaths( |
|
|
544 | '''find paths of disabled extensions. returns a dict of {name: path} | |
|
545 | removes /__init__.py from packages if strip_init is True''' | |
|
543 | def _disabledpaths(): | |
|
544 | '''find paths of disabled extensions. returns a dict of {name: path}''' | |
|
546 | 545 | import hgext |
|
547 | 546 | extpath = os.path.dirname( |
|
548 | 547 | os.path.abspath(pycompat.fsencode(hgext.__file__))) |
@@ -561,8 +560,6 b' def _disabledpaths(strip_init=False):' | |||
|
561 | 560 | path = os.path.join(extpath, e, '__init__.py') |
|
562 | 561 | if not os.path.exists(path): |
|
563 | 562 | continue |
|
564 | if strip_init: | |
|
565 | path = os.path.dirname(path) | |
|
566 | 563 | if name in exts or name in _order or name == '__init__': |
|
567 | 564 | continue |
|
568 | 565 | exts[name] = path |
General Comments 0
You need to be logged in to leave comments.
Login now