check-seclevel: pass a ui to the extension loader
authorBryan O'Sullivan <bos@serpentine.com>
Tue, 22 Dec 2015 21:38:06 -0800
changeset 27511 44a596a8bed1
parent 27510 020d93c4a727
child 27512 e2aa9c4030c4
check-seclevel: pass a ui to the extension loader Without this, if an import error occurs (as with pypy), the attempt to report it fails since ui is None.
doc/check-seclevel.py
--- a/doc/check-seclevel.py	Tue Dec 22 21:38:05 2015 -0800
+++ b/doc/check-seclevel.py	Tue Dec 22 21:38:06 2015 -0800
@@ -87,7 +87,7 @@
 
     for name in sorted(extensions.enabled().keys() +
                        extensions.disabled().keys()):
-        mod = extensions.load(None, name, None)
+        mod = extensions.load(ui, name, None)
         if not mod.__doc__:
             ui.note(('skip checking %s extension: no help document\n') % name)
             continue