~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-30 14:37:31 UTC
  • mfrom: (1711.9.11 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060830143731-af84f2be15714815
(Robey Pointer) replace foo.has_key(bar) with bar in foo

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        k_unsquished = _unsquish_command_name(k)
66
66
    else:
67
67
        k_unsquished = k
68
 
    if not plugin_cmds.has_key(k_unsquished):
 
68
    if k_unsquished not in plugin_cmds:
69
69
        plugin_cmds[k_unsquished] = cmd
70
70
        mutter('registered plugin command %s', k_unsquished)
71
71
        if decorate and k_unsquished in builtin_command_names():