##// END OF EJS Templates
py3: make gendoc use absolute_import...
Pulkit Goyal -
r28966:ea1fab52 default
parent child Browse files
Show More
@@ -4,7 +4,11 b''
4 4 where DOC is the name of a document
5 5 """
6 6
7 import os, sys, textwrap
7 from __future__ import absolute_import
8
9 import os
10 import sys
11 import textwrap
8 12
9 13 # This script is executed during installs and may not have C extensions
10 14 # available. Relax C module requirements.
@@ -12,12 +16,22 b" os.environ['HGMODULEPOLICY'] = 'allow'"
12 16 # import from the live mercurial repo
13 17 sys.path.insert(0, "..")
14 18 from mercurial import demandimport; demandimport.enable()
15 from mercurial import minirst
16 from mercurial.commands import table, globalopts
17 from mercurial.i18n import gettext, _
18 from mercurial.help import helptable, loaddoc
19 from mercurial import extensions
20 from mercurial import ui as uimod
19 from mercurial import (
20 commands,
21 extensions,
22 help,
23 minirst,
24 ui as uimod,
25 )
26 from mercurial.i18n import (
27 gettext,
28 _,
29 )
30
31 table = commands.table
32 globalopts = commands.globalopts
33 helptable = help.helptable
34 loaddoc = help.loaddoc
21 35
22 36 def get_desc(docstr):
23 37 if not docstr:
@@ -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/gendoc.py not using absolute_import
7 6 doc/hgmanpage.py not using absolute_import
8 7 hgext/color.py not using absolute_import
9 8 hgext/eol.py not using absolute_import
General Comments 0
You need to be logged in to leave comments. Login now