/[ascend]/trunk/pygtk/diagnose.py
ViewVC logotype

Diff of /trunk/pygtk/diagnose.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1429 by johnpye, Thu Jan 11 04:07:02 2007 UTC revision 1430 by jpye, Thu May 17 23:36:30 2007 UTC
# Line 475  def reduce(names): Line 475  def reduce(names):
475      for k, g in groupby(data, lambda x: len(x)):      for k, g in groupby(data, lambda x: len(x)):
476          if k == 1:          if k == 1:
477              indexed = {}              indexed = {}
478              seq = set(get(indexed, item) for item in g)              seq = set([get(indexed, item) for item in g])
479              res['[global]'] = [ i+fold(indexed.get(i, [])) for i in sorted(seq) ]              res['[global]'] = [ i+fold(indexed.get(i, [])) for i in sorted(seq) ]
480          else:          else:
481              for key, g1 in groupby(g, lambda x: '.'.join(x[:-1])):              for key, g1 in groupby(g, lambda x: '.'.join(x[:-1])):

Legend:
Removed from v.1429  
changed lines
  Added in v.1430

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22