changeset 25960:05d97407a8d1

minirst: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 08 Aug 2015 19:42:16 -0700
parents 892d601f0d44
children c0c89b2d07be
files mercurial/minirst.py
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/minirst.py	Sat Aug 08 19:41:25 2015 -0700
+++ b/mercurial/minirst.py	Sat Aug 08 19:42:16 2015 -0700
@@ -18,11 +18,16 @@
 when adding support for new constructs.
 """
 
-import re
-import util, encoding
-from i18n import _
+from __future__ import absolute_import
 
 import cgi
+import re
+
+from .i18n import _
+from . import (
+    encoding,
+    util,
+)
 
 def section(s):
     return "%s\n%s\n\n" % (s, "\"" * encoding.colwidth(s))