[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - include.py:1.39
Fred L. Drake, Jr.
fred at zope.com
Tue May 4 16:10:59 EDT 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv31943/zpkgtools
Modified Files:
include.py
Log Message:
add Specifcation.__nonzero__ to allow a client to determine if processing
the specification will actually cause anything to happen
=== Packages/zpkgtools/zpkgtools/include.py 1.38 => 1.39 ===
--- Packages/zpkgtools/zpkgtools/include.py:1.38 Tue May 4 13:09:57 2004
+++ Packages/zpkgtools/zpkgtools/include.py Tue May 4 16:10:28 2004
@@ -247,6 +247,9 @@
self.filename = filename
self.group = group
+ def __nonzero__(self):
+ return bool(self.includes)
+
def cook(self):
patterns = self.includes.pop(None, [])
source = os.path.normpath(self.source)
More information about the Zope-CVS
mailing list