Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templater.py @ 25985:7eb357b5f774
templater: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 08 Aug 2015 18:23:53 -0700 |
parents | e71e5629e006 |
children | 0f1bc7faa50d |
line wrap: on
line diff
--- a/mercurial/templater.py Sat Aug 08 20:09:43 2015 -0700 +++ b/mercurial/templater.py Sat Aug 08 18:23:53 2015 -0700 @@ -5,12 +5,23 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -from i18n import _ -import os, re -import util, config, templatefilters, templatekw, parser, error -import revset as revsetmod +from __future__ import absolute_import + +import os +import re import types -import minirst + +from .i18n import _ +from . import ( + config, + error, + minirst, + parser, + revset as revsetmod, + templatefilters, + templatekw, + util, +) # template parsing