# HG changeset patch # User Bryan O'Sullivan # Date 2015-12-23 05:38:06 # Node ID 44a596a8bed1b12f2a742d88e664806c651be964 # Parent 020d93c4a727d70366d9205f94e792ca638cc398 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. diff --git a/doc/check-seclevel.py b/doc/check-seclevel.py --- a/doc/check-seclevel.py +++ b/doc/check-seclevel.py @@ -87,7 +87,7 @@ def checkhghelps(ui): 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