comparison hgext/patchbomb.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 7b188bc23942
children 63a3749147af
comparison
equal deleted inserted replaced
29204:ce2d81aafbae 29205:a0939666b836
69 import errno 69 import errno
70 import os 70 import os
71 import socket 71 import socket
72 import tempfile 72 import tempfile
73 73
74 from mercurial.i18n import _
74 from mercurial import ( 75 from mercurial import (
75 cmdutil, 76 cmdutil,
76 commands, 77 commands,
77 error, 78 error,
78 hg, 79 hg,
81 patch, 82 patch,
82 scmutil, 83 scmutil,
83 util, 84 util,
84 ) 85 )
85 stringio = util.stringio 86 stringio = util.stringio
86 from mercurial.i18n import _
87 87
88 cmdtable = {} 88 cmdtable = {}
89 command = cmdutil.command(cmdtable) 89 command = cmdutil.command(cmdtable)
90 # Note for extension authors: ONLY specify testedwith = 'internal' for 90 # Note for extension authors: ONLY specify testedwith = 'internal' for
91 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 91 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should