Show More
@@ -4,7 +4,11 b'' | |||||
4 | where DOC is the name of a document |
|
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 | # This script is executed during installs and may not have C extensions |
|
13 | # This script is executed during installs and may not have C extensions | |
10 | # available. Relax C module requirements. |
|
14 | # available. Relax C module requirements. | |
@@ -12,12 +16,22 b" os.environ['HGMODULEPOLICY'] = 'allow'" | |||||
12 | # import from the live mercurial repo |
|
16 | # import from the live mercurial repo | |
13 | sys.path.insert(0, "..") |
|
17 | sys.path.insert(0, "..") | |
14 | from mercurial import demandimport; demandimport.enable() |
|
18 | from mercurial import demandimport; demandimport.enable() | |
15 |
from mercurial import |
|
19 | from mercurial import ( | |
16 | from mercurial.commands import table, globalopts |
|
20 | commands, | |
17 | from mercurial.i18n import gettext, _ |
|
21 | extensions, | |
18 | from mercurial.help import helptable, loaddoc |
|
22 | help, | |
19 | from mercurial import extensions |
|
23 | minirst, | |
20 | from mercurial import ui as uimod |
|
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 | def get_desc(docstr): |
|
36 | def get_desc(docstr): | |
23 | if not docstr: |
|
37 | if not docstr: |
@@ -3,7 +3,6 b'' | |||||
3 | $ cd "$TESTDIR"/.. |
|
3 | $ cd "$TESTDIR"/.. | |
4 |
|
4 | |||
5 | $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py |
|
5 | $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py | |
6 | doc/gendoc.py not using absolute_import |
|
|||
7 | doc/hgmanpage.py not using absolute_import |
|
6 | doc/hgmanpage.py not using absolute_import | |
8 | hgext/color.py not using absolute_import |
|
7 | hgext/color.py not using absolute_import | |
9 | hgext/eol.py not using absolute_import |
|
8 | hgext/eol.py not using absolute_import |
General Comments 0
You need to be logged in to leave comments.
Login now