[Subversion] / PEAK / src / peak / util / Graph.py  

Diff of /PEAK/src/peak/util/Graph.py

Parent Directory | Revision Log

version 2715, Wed Mar 27 17:24:00 2013 UTC version 2716, Wed Mar 27 17:37:01 2013 UTC
Line 1 
Line 1 
 import dispatch  import dispatch
 from sets import Set  from sets import Set
   from peak.util.decorators import decorate
   
   
 class Graph:  class Graph:
     def __init__(self,iterable=()):      def __init__(self,iterable=()):
Line 10 
Line 9 
         for k,v in iterable:          for k,v in iterable:
             self[k] = v              self[k] = v
   
     [dispatch.as(classmethod)]      decorate(classmethod)
     def fromkeys(cls,keys):      def fromkeys(cls,keys):
         return cls([(k,k) for k in keys])          return cls([(k,k) for k in keys])
   


Generate output suitable for use with a patch program
Legend:
Removed from v.2715  
changed lines
  Added in v.2716

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help