##// END OF EJS Templates
pychecker: remove unused local variables
Benoit Boissinot -
r9679:a1943c2a default
parent child Browse files
Show More
@@ -31,7 +31,6 b' def add(ui, repo, *pats, **opts):'
31 """
31 """
32
32
33 bad = []
33 bad = []
34 exacts = {}
35 names = []
34 names = []
36 m = cmdutil.match(repo, pats, opts)
35 m = cmdutil.match(repo, pats, opts)
37 oldbad = m.bad
36 oldbad = m.bad
@@ -194,8 +194,6 b' class cmdalias(object):'
194
194
195 args = shlex.split(self.definition)
195 args = shlex.split(self.definition)
196 cmd = args.pop(0)
196 cmd = args.pop(0)
197 opts = []
198 help = ''
199
197
200 try:
198 try:
201 self.fn, self.opts, self.help = cmdutil.findcmd(cmd, cmdtable, False)[1]
199 self.fn, self.opts, self.help = cmdutil.findcmd(cmd, cmdtable, False)[1]
@@ -181,7 +181,6 b' def enabled():'
181 '''return a dict of {name: desc} of extensions, and the max name length'''
181 '''return a dict of {name: desc} of extensions, and the max name length'''
182 exts = {}
182 exts = {}
183 maxlength = 0
183 maxlength = 0
184 exthelps = []
185 for ename, ext in extensions():
184 for ename, ext in extensions():
186 doc = (gettext(ext.__doc__) or _('(no help text available)'))
185 doc = (gettext(ext.__doc__) or _('(no help text available)'))
187 ename = ename.split('.')[-1]
186 ename = ename.split('.')[-1]
@@ -466,7 +466,7 b' class revlog(object):'
466 if i:
466 if i:
467 try:
467 try:
468 d = self._io.parseindex(f, i, self._inline)
468 d = self._io.parseindex(f, i, self._inline)
469 except (ValueError, IndexError), e:
469 except (ValueError, IndexError):
470 raise RevlogError(_("index %s is corrupted") % (self.indexfile))
470 raise RevlogError(_("index %s is corrupted") % (self.indexfile))
471 self.index, self.nodemap, self._chunkcache = d
471 self.index, self.nodemap, self._chunkcache = d
472 if not self._chunkcache:
472 if not self._chunkcache:
General Comments 0
You need to be logged in to leave comments. Login now