comparison mercurial/formatter.py @ 25950:175873e36d03

formatter: use absolute_import
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 08 Aug 2015 19:17:40 -0700
parents 31137258ae8b
children 55de800937e0
comparison
equal deleted inserted replaced
25949:80aba76e29c1 25950:175873e36d03
3 # Copyright 2012 Matt Mackall <mpm@selenic.com> 3 # Copyright 2012 Matt Mackall <mpm@selenic.com>
4 # 4 #
5 # This software may be used and distributed according to the terms of the 5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.
7 7
8 from __future__ import absolute_import
9
8 import cPickle 10 import cPickle
9 from node import hex, short
10 from i18n import _
11 import encoding, util
12 import templater
13 import os 11 import os
12
13 from .i18n import _
14 from .node import (
15 hex,
16 short,
17 )
18
19 from . import (
20 encoding,
21 templater,
22 util,
23 )
14 24
15 class baseformatter(object): 25 class baseformatter(object):
16 def __init__(self, ui, topic, opts): 26 def __init__(self, ui, topic, opts):
17 self._ui = ui 27 self._ui = ui
18 self._topic = topic 28 self._topic = topic