Mercurial > public > mercurial-scm > hg-stable
diff mercurial/dispatch.py @ 10651:5f091fc1bab7
style: use consistent variable names (*mod) with imports which would shadow
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 11 Mar 2010 17:43:44 +0100 |
parents | 6ded6243bde2 |
children | 8f4c95368313 |
line wrap: on
line diff
--- a/mercurial/dispatch.py Thu Mar 11 15:52:17 2010 +0100 +++ b/mercurial/dispatch.py Thu Mar 11 17:43:44 2010 +0100 @@ -9,7 +9,7 @@ import os, sys, atexit, signal, pdb, socket, errno, shlex, time import util, commands, hg, fancyopts, extensions, hook, error import cmdutil, encoding -import ui as _ui +import ui as uimod def run(): "run the command in sys.argv" @@ -18,7 +18,7 @@ def dispatch(args): "run the command specified in args" try: - u = _ui.ui() + u = uimod.ui() if '--traceback' in args: u.setconfig('ui', 'traceback', 'on') except util.Abort, inst: