# HG changeset patch # User Christian Ebert # Date 1227627040 -3600 # Node ID d3f1d316b72b383399d248756acf3f46ce00c8d6 # Parent 6163ef936a0082be7867074687ad52dc89db27c3 keyword: do not shadow builtin format (detected by pychecker) diff -r 6163ef936a00 -r d3f1d316b72b hgext/keyword.py --- a/hgext/keyword.py Tue Nov 25 23:26:33 2008 +0100 +++ b/hgext/keyword.py Tue Nov 25 16:30:40 2008 +0100 @@ -348,8 +348,8 @@ ui.note(_('unhooked all commit hooks\n')) ui.note('hg -R "%s" ci -m "%s"\n' % (tmpdir, msg)) repo.commit(text=msg) - format = ui.verbose and ' in %s' % path or '' - demostatus('%s keywords expanded%s' % (kwstatus, format)) + fmt = ui.verbose and ' in %s' % path or '' + demostatus('%s keywords expanded%s' % (kwstatus, fmt)) ui.write(repo.wread(fn)) ui.debug(_('\nremoving temporary repo %s\n') % tmpdir) shutil.rmtree(tmpdir, ignore_errors=True) @@ -382,9 +382,9 @@ if opts.get('all') or opts.get('ignore'): kwfstats += (('I', [f for f in files if f not in kwfiles]),) for char, filenames in kwfstats: - format = (opts.get('all') or ui.verbose) and '%s %%s\n' % char or '%s\n' + fmt = (opts.get('all') or ui.verbose) and '%s %%s\n' % char or '%s\n' for f in filenames: - ui.write(format % repo.pathto(f, cwd)) + ui.write(fmt % repo.pathto(f, cwd)) def shrink(ui, repo, *pats, **opts): '''revert expanded keywords in working directory