doc/check-seclevel.py
changeset 28965 98153441c8cc
parent 27770 1b8c7d59be43
child 30564 d83ca854fa21
--- a/doc/check-seclevel.py	Thu Apr 14 15:20:11 2016 +0000
+++ b/doc/check-seclevel.py	Sun Apr 17 00:14:42 2016 +0530
@@ -2,18 +2,26 @@
 #
 # checkseclevel - checking section title levels in each online help document
 
-import sys, os
+from __future__ import absolute_import
+
 import optparse
+import os
+import sys
 
 # import from the live mercurial repo
 os.environ['HGMODULEPOLICY'] = 'py'
 sys.path.insert(0, "..")
 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
+from mercurial import (
+    commands,
+    extensions,
+    help,
+    minirst,
+    ui as uimod,
+)
+
+table = commands.table
+helptable = help.helptable
 
 level2mark = ['"', '=', '-', '.', '#']
 reservedmarks = ['"']