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

Pulkit Goyal 7895pulkit at gmail.com
Mon Apr 11 06:14:52 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1460368525 -19800
#      Mon Apr 11 15:25:25 2016 +0530
# Node ID 36983357b44533ebc59595239989af8685339610
# 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