# HG changeset patch # User Christian Ebert # Date 1200835860 -3600 # Node ID 1346cc5a64615e6ec71e830dd42905eb4916a2ac # Parent abf7ccaf0788989733165fc9829eb6e781452c81 Prefer item in dict over dict.has_key(item) Message-ID: <4792DB2A.7050909@serpentine.com> diff -r abf7ccaf0788 -r 1346cc5a6461 hgkw/keyword.py --- a/hgkw/keyword.py Wed Jan 16 11:22:16 2008 +0100 +++ b/hgkw/keyword.py Sun Jan 20 14:31:00 2008 +0100 @@ -245,7 +245,7 @@ mf = ctx.manifest() if node is not None: # commit _kwtemplater.commitnode = node - files = [f for f in ctx.files() if mf.has_key(f)] + files = [f for f in ctx.files() if f in mf] notify = ui.debug else: # kwexpand/kwshrink notify = ui.note