~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.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:
154
154
    anc_iter = enumerate(iter_ancestors(revision_id, revision_source,
155
155
                         only_present=True))
156
156
    for anc_order, (anc_id, anc_distance) in anc_iter:
157
 
        if not found_ancestors.has_key(anc_id):
 
157
        if anc_id not in found_ancestors:
158
158
            found_ancestors[anc_id] = (anc_order, anc_distance)
159
159
    return found_ancestors
160
160