[py-svn] r51666 - py/branch/event/py/test2

hpk at codespeak.net hpk at codespeak.net
Wed Feb 20 09:02:34 CET 2008


Author: hpk
Date: Wed Feb 20 09:02:33 2008
New Revision: 51666

Modified:
   py/branch/event/py/test2/collect.py
   py/branch/event/py/test2/item.py
Log:
fspath used for most items and collectors 


Modified: py/branch/event/py/test2/collect.py
==============================================================================
--- py/branch/event/py/test2/collect.py	(original)
+++ py/branch/event/py/test2/collect.py	Wed Feb 20 09:02:33 2008
@@ -46,6 +46,7 @@
         if config is None:
             config = getattr(parent, '_config')
         self._config = config 
+        self.fspath = getattr(parent, 'fspath', None) 
 
     def __repr__(self): 
         return "<%s %r>" %(self.__class__.__name__, self.name) 
@@ -190,10 +191,6 @@
     Function = configproperty('Function')
     Generator = configproperty('Generator')
 
-    def __init__(self, name, parent=None, config=None):
-        super(Collector, self).__init__(name, parent, config=config)
-        self.fspath = getattr(parent, 'fspath', None) 
-
     def run(self):
         """ deprecated: use listdir(). """
         py.std.warnings.warn("deprecated: use listdir()", category=DeprecationWarning)

Modified: py/branch/event/py/test2/item.py
==============================================================================
--- py/branch/event/py/test2/item.py	(original)
+++ py/branch/event/py/test2/item.py	Wed Feb 20 09:02:33 2008
@@ -31,10 +31,6 @@
             self.stack.append(col) 
 
 class Item(Base): 
-    def __init__(self, name, parent=None, config=None):
-        super(Item, self).__init__(name, parent=parent, config=config)
-        self.fspath = getattr(parent, 'fspath', None) 
-        
     def startcapture(self): 
         self._config._startcapture(self, path=self.fspath)
 


More information about the py-svn mailing list