[Buildbot-commits] buildbot/buildbot/process process_twisted.py,1.43,1.44

Brian Warner warner at users.sourceforge.net
Sun May 7 04:08:08 UTC 2006


Update of /cvsroot/buildbot/buildbot/buildbot/process
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10173/buildbot/process

Modified Files:
	process_twisted.py 
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-526
Creator:  Brian Warner <warner at lothar.com>

fix stupid mistake in TwistedBuild.isFileImportant

	* buildbot/process/process_twisted.py (TwistedBuild.isFileImportant):
	fix stupid braino: either use startwith or find()==0, not both.


Index: process_twisted.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/process/process_twisted.py,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- process_twisted.py	17 Apr 2006 19:22:34 -0000	1.43
+++ process_twisted.py	7 May 2006 04:08:05 -0000	1.44
@@ -11,9 +11,9 @@
 class TwistedBuild(Build):
     workdir = "Twisted" # twisted's bin/trial expects to live in here
     def isFileImportant(self, filename):
-        if filename.startswith("doc/fun/") == 0:
+        if filename.startswith("doc/fun/"):
             return 0
-        if filename.startswith("sandbox/") == 0:
+        if filename.startswith("sandbox/"):
             return 0
         return 1
 





More information about the Commits mailing list