Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 5915:d0576d065993
Prefer i in d over d.has_key(i)
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Sun, 20 Jan 2008 14:39:25 +0100 |
parents | 83c354c4d529 |
children | 9f1e6ab76069 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon Jan 21 13:37:27 2008 -0200 +++ b/mercurial/cmdutil.py Sun Jan 20 14:39:25 2008 +0100 @@ -50,7 +50,7 @@ """Return (aliases, command table entry) for command string.""" choice = findpossible(ui, cmd, table) - if choice.has_key(cmd): + if cmd in choice: return choice[cmd] if len(choice) > 1: