Comments
Patch
@@ -1,19 +1,18 @@
#!/usr/bin/env python
#
# checkseclevel - checking section title levels in each online help document
import sys, os
import optparse
# import from the live mercurial repo
+os.environ['HGMODULEPOLICY'] = 'py'
sys.path.insert(0, "..")
-# fall back to pure modules if required C extensions are not available
-sys.path.append(os.path.join('..', 'mercurial', 'pure'))
from mercurial import demandimport; demandimport.enable()
from mercurial.commands import table
from mercurial.help import helptable
from mercurial import extensions
from mercurial import minirst
from mercurial import ui as uimod
level2mark = ['"', '=', '-', '.', '#']