Mercurial > public > mercurial-scm > hg
comparison mercurial/minirst.py @ 25960:05d97407a8d1
minirst: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 08 Aug 2015 19:42:16 -0700 |
parents | 2a8d8b4097c8 |
children | 9b70eda7529c |
comparison
equal
deleted
inserted
replaced
25959:892d601f0d44 | 25960:05d97407a8d1 |
---|---|
16 | 16 |
17 Remember to update http://mercurial.selenic.com/wiki/HelpStyleGuide | 17 Remember to update http://mercurial.selenic.com/wiki/HelpStyleGuide |
18 when adding support for new constructs. | 18 when adding support for new constructs. |
19 """ | 19 """ |
20 | 20 |
21 from __future__ import absolute_import | |
22 | |
23 import cgi | |
21 import re | 24 import re |
22 import util, encoding | 25 |
23 from i18n import _ | 26 from .i18n import _ |
24 | 27 from . import ( |
25 import cgi | 28 encoding, |
29 util, | |
30 ) | |
26 | 31 |
27 def section(s): | 32 def section(s): |
28 return "%s\n%s\n\n" % (s, "\"" * encoding.colwidth(s)) | 33 return "%s\n%s\n\n" % (s, "\"" * encoding.colwidth(s)) |
29 | 34 |
30 def subsection(s): | 35 def subsection(s): |