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.
--- 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