~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Robey Pointer
  • Date: 2006-08-29 20:47:02 UTC
  • mto: (1711.9.9 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1975.
  • Revision ID: robey@lag.net-20060829204702-6d40ae7a33ec62c7
remove usage of has_key()

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():