comparison hgext/gpg.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 555ab813c237
children ecf296652080
comparison
equal deleted inserted replaced
29204:ce2d81aafbae 29205:a0939666b836
8 from __future__ import absolute_import 8 from __future__ import absolute_import
9 9
10 import binascii 10 import binascii
11 import os 11 import os
12 import tempfile 12 import tempfile
13
14 from mercurial.i18n import _
13 from mercurial import ( 15 from mercurial import (
14 cmdutil, 16 cmdutil,
15 commands, 17 commands,
16 error, 18 error,
17 match, 19 match,
18 node as hgnode, 20 node as hgnode,
19 util, 21 util,
20 ) 22 )
21 from mercurial.i18n import _
22 23
23 cmdtable = {} 24 cmdtable = {}
24 command = cmdutil.command(cmdtable) 25 command = cmdutil.command(cmdtable)
25 # Note for extension authors: ONLY specify testedwith = 'internal' for 26 # Note for extension authors: ONLY specify testedwith = 'internal' for
26 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should 27 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should