[PATCH 1 of 8] py3: make doc/docchecker use absolute_import

Pulkit Goyal 7895pulkit at gmail.com
Thu May 12 21:28:54 UTC 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1463087439 -19800
#      Fri May 13 02:40:39 2016 +0530
# Node ID edaa549fd32eb620beb255e979019ee91bb0d414
# Parent  df838803c1d487e4601f96c6cfd85e6ad4f6291f
py3: make doc/docchecker use absolute_import

diff --git a/doc/docchecker b/doc/docchecker
--- a/doc/docchecker
+++ b/doc/docchecker
@@ -6,8 +6,11 @@
 #
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
+
+from __future__ import absolute_import
+
+import re
 import sys
-import re
 
 leadingline = re.compile(r'(^\s*)(\S.*)$')
 


More information about the Mercurial-devel mailing list