~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Lib/compiler/pyassem.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-04-08 02:29:05 UTC
  • mto: (10.1.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20090408022905-xa5zbe8821m2o77o
Tags: upstream-2.6.2~rc1
ImportĀ upstreamĀ versionĀ 2.6.2~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
210
210
    order = []
211
211
    seen[b] = b
212
212
    for c in b.get_children():
213
 
        if seen.has_key(c):
 
213
        if c in seen:
214
214
            continue
215
215
        order = order + dfs_postorder(c, seen)
216
216
    order.append(b)
406
406
        seen = {}
407
407
 
408
408
        def max_depth(b, d):
409
 
            if seen.has_key(b):
 
409
            if b in seen:
410
410
                return d
411
411
            seen[b] = 1
412
412
            d = d + depth[b]
482
482
        for name in self.cellvars:
483
483
            cells[name] = 1
484
484
        self.cellvars = [name for name in self.varnames
485
 
                         if cells.has_key(name)]
 
485
                         if name in cells]
486
486
        for name in self.cellvars:
487
487
            del cells[name]
488
488
        self.cellvars = self.cellvars + cells.keys()