changeset 9679:a1943c2a4661

pychecker: remove unused local variables
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 31 Oct 2009 17:04:46 +0100
parents e2b1de5fee04
children 8cea86d73887
files mercurial/commands.py mercurial/dispatch.py mercurial/extensions.py mercurial/revlog.py
diffstat 4 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sat Oct 31 16:56:58 2009 +0100
+++ b/mercurial/commands.py	Sat Oct 31 17:04:46 2009 +0100
@@ -31,7 +31,6 @@
     """
 
     bad = []
-    exacts = {}
     names = []
     m = cmdutil.match(repo, pats, opts)
     oldbad = m.bad
--- a/mercurial/dispatch.py	Sat Oct 31 16:56:58 2009 +0100
+++ b/mercurial/dispatch.py	Sat Oct 31 17:04:46 2009 +0100
@@ -194,8 +194,6 @@
 
         args = shlex.split(self.definition)
         cmd = args.pop(0)
-        opts = []
-        help = ''
 
         try:
             self.fn, self.opts, self.help = cmdutil.findcmd(cmd, cmdtable, False)[1]
--- a/mercurial/extensions.py	Sat Oct 31 16:56:58 2009 +0100
+++ b/mercurial/extensions.py	Sat Oct 31 17:04:46 2009 +0100
@@ -181,7 +181,6 @@
     '''return a dict of {name: desc} of extensions, and the max name length'''
     exts = {}
     maxlength = 0
-    exthelps = []
     for ename, ext in extensions():
         doc = (gettext(ext.__doc__) or _('(no help text available)'))
         ename = ename.split('.')[-1]
--- a/mercurial/revlog.py	Sat Oct 31 16:56:58 2009 +0100
+++ b/mercurial/revlog.py	Sat Oct 31 17:04:46 2009 +0100
@@ -466,7 +466,7 @@
         if i:
             try:
                 d = self._io.parseindex(f, i, self._inline)
-            except (ValueError, IndexError), e:
+            except (ValueError, IndexError):
                 raise RevlogError(_("index %s is corrupted") % (self.indexfile))
             self.index, self.nodemap, self._chunkcache = d
             if not self._chunkcache: