comparison hgext/notify.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 1bba1b43525a
children 48afcaadf70e
comparison
equal deleted inserted replaced
29204:ce2d81aafbae 29205:a0939666b836
137 import email 137 import email
138 import fnmatch 138 import fnmatch
139 import socket 139 import socket
140 import time 140 import time
141 141
142 from mercurial.i18n import _
142 from mercurial import ( 143 from mercurial import (
143 cmdutil, 144 cmdutil,
144 error, 145 error,
145 mail, 146 mail,
146 patch, 147 patch,
147 util, 148 util,
148 ) 149 )
149 from mercurial.i18n import _
150 150
151 # Note for extension authors: ONLY specify testedwith = 'internal' for 151 # Note for extension authors: ONLY specify testedwith = 'internal' for
152 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 152 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
153 # be specifying the version(s) of Mercurial they are tested with, or 153 # be specifying the version(s) of Mercurial they are tested with, or
154 # leave the attribute unspecified. 154 # leave the attribute unspecified.