Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/hgext/patchbomb.py Thu May 19 00:20:38 2016 +0900 +++ b/hgext/patchbomb.py Sat May 14 14:03:12 2016 +0900 @@ -71,6 +71,7 @@ import socket import tempfile +from mercurial.i18n import _ from mercurial import ( cmdutil, commands, @@ -83,7 +84,6 @@ util, ) stringio = util.stringio -from mercurial.i18n import _ cmdtable = {} command = cmdutil.command(cmdtable)