comparison hgext/color.py @ 29205:a0939666b836

py3: move up symbol imports to enforce import-checker rules Since (b) is banned, we should do the same for (a) for consistency. a) from mercurial import hg from mercurial.i18n import _ b) from . import hg from .i18n import _
author Yuya Nishihara <yuya@tcha.org>
date Sat, 14 May 2016 14:03:12 +0900
parents a5d449a7bc8f
children d5883fd055c6
comparison
equal deleted inserted replaced
29204:ce2d81aafbae 29205:a0939666b836
154 ''' 154 '''
155 155
156 from __future__ import absolute_import 156 from __future__ import absolute_import
157 157
158 import os 158 import os
159
160 from mercurial.i18n import _
159 from mercurial import ( 161 from mercurial import (
160 cmdutil, 162 cmdutil,
161 commands, 163 commands,
162 dispatch, 164 dispatch,
163 extensions, 165 extensions,
164 subrepo, 166 subrepo,
165 ui as uimod, 167 ui as uimod,
166 util, 168 util,
167 ) 169 )
168 from mercurial.i18n import _
169 170
170 cmdtable = {} 171 cmdtable = {}
171 command = cmdutil.command(cmdtable) 172 command = cmdutil.command(cmdtable)
172 # Note for extension authors: ONLY specify testedwith = 'internal' for 173 # Note for extension authors: ONLY specify testedwith = 'internal' for
173 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 174 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should