dispatch: fix for-loop variable name
authorIdan Kamara <idankk86@gmail.com>
Tue, 14 Jun 2011 20:25:38 +0300
changeset 14618 110d75f0abb3
parent 14617 23f4e1e40988
child 14619 29f55c0e39e7
dispatch: fix for-loop variable name
mercurial/dispatch.py
--- a/mercurial/dispatch.py	Tue Jun 14 13:29:25 2011 +0200
+++ b/mercurial/dispatch.py	Tue Jun 14 20:25:38 2011 +0300
@@ -593,20 +593,20 @@
         atexit.register(print_time)
 
     if options['verbose'] or options['debug'] or options['quiet']:
-        for ui in (ui, lui):
-            ui.setconfig('ui', 'verbose', str(bool(options['verbose'])))
-            ui.setconfig('ui', 'debug', str(bool(options['debug'])))
-            ui.setconfig('ui', 'quiet', str(bool(options['quiet'])))
+        for ui_ in (ui, lui):
+            ui_.setconfig('ui', 'verbose', str(bool(options['verbose'])))
+            ui_.setconfig('ui', 'debug', str(bool(options['debug'])))
+            ui_.setconfig('ui', 'quiet', str(bool(options['quiet'])))
     if options['traceback']:
-        for ui in (ui, lui):
-            ui.setconfig('ui', 'traceback', 'on')
+        for ui_ in (ui, lui):
+            ui_.setconfig('ui', 'traceback', 'on')
     if options['noninteractive']:
-        for ui in (ui, lui):
-            ui.setconfig('ui', 'interactive', 'off')
+        for ui_ in (ui, lui):
+            ui_.setconfig('ui', 'interactive', 'off')
 
     if cmdoptions.get('insecure', False):
-        for ui in (ui, lui):
-            ui.setconfig('web', 'cacerts', '')
+        for ui_ in (ui, lui):
+            ui_.setconfig('web', 'cacerts', '')
 
     if options['help']:
         return commands.help_(ui, cmd, options['version'])