# HG changeset patch # User Benoit Boissinot # Date 2009-10-31 16:04:46 # Node ID a1943c2a4661f91db50603bd66a54809b772e7a8 # Parent e2b1de5fee0459e2f1f9ea40764c804e23a0055c pychecker: remove unused local variables diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -31,7 +31,6 @@ def add(ui, repo, *pats, **opts): """ bad = [] - exacts = {} names = [] m = cmdutil.match(repo, pats, opts) oldbad = m.bad diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -194,8 +194,6 @@ class cmdalias(object): args = shlex.split(self.definition) cmd = args.pop(0) - opts = [] - help = '' try: self.fn, self.opts, self.help = cmdutil.findcmd(cmd, cmdtable, False)[1] diff --git a/mercurial/extensions.py b/mercurial/extensions.py --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -181,7 +181,6 @@ def enabled(): '''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] diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -466,7 +466,7 @@ class revlog(object): 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: