Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 4956:02b127749dc0
fix unused variables reported by pychecker
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Fri, 20 Jul 2007 09:31:32 +0200 |
parents | 90be978c9d3d |
children | 4106dde15aed |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Jul 19 18:39:51 2007 +0200 +++ b/mercurial/commands.py Fri Jul 20 09:31:32 2007 +0200 @@ -8,7 +8,7 @@ import demandimport; demandimport.enable() from node import * from i18n import _ -import bisect, os, re, sys, urllib, shlex, stat +import bisect, os, re, sys, urllib, stat import ui, hg, util, revlog, bundlerepo, extensions import difflib, patch, time, help, mdiff, tempfile import errno, version, socket @@ -2197,7 +2197,6 @@ Modified files and added files are not removed by default. To remove them, use the -f/--force option. """ - names = [] if not opts['after'] and not pats: raise util.Abort(_('no files specified')) files, matchfn, anypats = cmdutil.matchpats(repo, pats, opts) @@ -2659,7 +2658,6 @@ bundle command. """ fnames = (fname1,) + fnames - result = None for fname in fnames: if os.path.exists(fname): f = open(fname, "rb")