Mercurial > hg-stable
diff mercurial/wireproto.py @ 12085:6f833fc3ccab
Consistently import foo as foomod when foo to avoid shadowing
This is in the style of 5f091fc1bab7.
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Mon, 30 Aug 2010 14:38:24 +0200 |
parents | 516b000fbb7e |
children | d7fff529d85d |
line wrap: on
line diff
--- a/mercurial/wireproto.py Mon Aug 30 13:00:22 2010 +0200 +++ b/mercurial/wireproto.py Mon Aug 30 14:38:24 2010 +0200 @@ -10,7 +10,7 @@ from node import bin, hex import changegroup as changegroupmod import repo, error, encoding, util, store -import pushkey as pushkey_ +import pushkey as pushkeymod # list of nodes encoding / decoding @@ -202,7 +202,7 @@ return "capabilities: %s\n" % (capabilities(repo, proto)) def listkeys(repo, proto, namespace): - d = pushkey_.list(repo, namespace).items() + d = pushkeymod.list(repo, namespace).items() t = '\n'.join(['%s\t%s' % (k.encode('string-escape'), v.encode('string-escape')) for k, v in d]) return t @@ -217,7 +217,7 @@ return "%s %s\n" % (success, r) def pushkey(repo, proto, namespace, key, old, new): - r = pushkey_.push(repo, namespace, key, old, new) + r = pushkeymod.push(repo, namespace, key, old, new) return '%s\n' % int(r) def _allowstream(ui):