##// END OF EJS Templates
typing: add an assertion instead of blacklisting mercurial/extensions.py...
Matt Harbison -
r47517:90a92f04 stable
parent child Browse files
Show More
@@ -912,6 +912,7 b' def enabled(shortname=True):'
912 exts = {}
912 exts = {}
913 for ename, ext in extensions():
913 for ename, ext in extensions():
914 doc = gettext(ext.__doc__) or _(b'(no help text available)')
914 doc = gettext(ext.__doc__) or _(b'(no help text available)')
915 assert doc is not None # help pytype
915 if shortname:
916 if shortname:
916 ename = ename.split(b'.')[-1]
917 ename = ename.split(b'.')[-1]
917 exts[ename] = doc.splitlines()[0].strip()
918 exts[ename] = doc.splitlines()[0].strip()
General Comments 0
You need to be logged in to leave comments. Login now