##// END OF EJS Templates
py3: make check-seclevel use absolute_import...
Pulkit Goyal -
r28965:98153441 default
parent child Browse files
Show More
@@ -2,18 +2,26 b''
2 2 #
3 3 # checkseclevel - checking section title levels in each online help document
4 4
5 import sys, os
5 from __future__ import absolute_import
6
6 7 import optparse
8 import os
9 import sys
7 10
8 11 # import from the live mercurial repo
9 12 os.environ['HGMODULEPOLICY'] = 'py'
10 13 sys.path.insert(0, "..")
11 14 from mercurial import demandimport; demandimport.enable()
12 from mercurial.commands import table
13 from mercurial.help import helptable
14 from mercurial import extensions
15 from mercurial import minirst
16 from mercurial import ui as uimod
15 from mercurial import (
16 commands,
17 extensions,
18 help,
19 minirst,
20 ui as uimod,
21 )
22
23 table = commands.table
24 helptable = help.helptable
17 25
18 26 level2mark = ['"', '=', '-', '.', '#']
19 27 reservedmarks = ['"']
@@ -3,7 +3,6 b''
3 3 $ cd "$TESTDIR"/..
4 4
5 5 $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
6 doc/check-seclevel.py not using absolute_import
7 6 doc/gendoc.py not using absolute_import
8 7 doc/hgmanpage.py not using absolute_import
9 8 hgext/color.py not using absolute_import
General Comments 0
You need to be logged in to leave comments. Login now