Mercurial > hg-stable
diff doc/check-seclevel.py @ 27511:44a596a8bed1
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.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 22 Dec 2015 21:38:06 -0800 |
parents | 020d93c4a727 |
children | 1b8c7d59be43 |
line wrap: on
line diff
--- 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