[PATCH 1 of 8] doc: make hgmanpage use absolute_import

Pulkit Goyal 7895pulkit at gmail.com
Sat Apr 9 19:12:52 UTC 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1460207307 -19800
#      Sat Apr 09 18:38:27 2016 +0530
# Node ID 99ff12efa7795fcb9c960f1f2d682b187f8b6402
# Parent  c5565fc8848dd084d104ca40c33d1acdfcff8bc6
doc: make hgmanpage use absolute_import

diff --git a/doc/hgmanpage.py b/doc/hgmanpage.py
--- a/doc/hgmanpage.py
+++ b/doc/hgmanpage.py
@@ -44,14 +44,19 @@
 
 __docformat__ = 'reStructuredText'
 
+from __future__ import absolute_import
+import inspect
 import re
 
-from docutils import nodes, writers, languages
+from docutils import (
+    languages,
+    nodes,
+    writers,
+)
 try:
     import roman
 except ImportError:
     from docutils.utils import roman
-import inspect
 
 FIELD_LIST_INDENT = 7
 DEFINITION_LIST_INDENT = 7
diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -5,7 +5,6 @@
   $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
   doc/check-seclevel.py not using absolute_import
   doc/gendoc.py not using absolute_import
-  doc/hgmanpage.py not using absolute_import
   hgext/color.py not using absolute_import
   hgext/eol.py not using absolute_import
   hgext/extdiff.py not using absolute_import


More information about the Mercurial-devel mailing list