changeset 28967:cd5e7195e441

py3: make hgmanpage use absolute_import
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 17 Apr 2016 00:23:05 +0530
parents ea1fab5293ca
children a5d449a7bc8f
files doc/hgmanpage.py tests/test-check-py3-compat.t
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/doc/hgmanpage.py	Sun Apr 17 00:20:44 2016 +0530
+++ b/doc/hgmanpage.py	Sun Apr 17 00:23:05 2016 +0530
@@ -41,12 +41,18 @@
 by the command whatis or apropos.
 
 """
+from __future__ import absolute_import
 
 __docformat__ = 'reStructuredText'
 
+import inspect
 import re
 
-from docutils import nodes, writers, languages
+from docutils import (
+    languages,
+    nodes,
+    writers,
+)
 try:
     import roman
 except ImportError:
--- a/tests/test-check-py3-compat.t	Sun Apr 17 00:20:44 2016 +0530
+++ b/tests/test-check-py3-compat.t	Sun Apr 17 00:23:05 2016 +0530
@@ -3,7 +3,6 @@
   $ cd "$TESTDIR"/..
 
   $ hg files 'set:(**.py)' | sed 's|\\|/|g' | xargs python contrib/check-py3-compat.py
-  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