[Buildbot-commits] buildbot/buildbot/steps python.py,1.3,1.4

Brian Warner warner at users.sourceforge.net
Wed Sep 20 06:33:37 UTC 2006


Update of /cvsroot/buildbot/buildbot/buildbot/steps
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29813/buildbot/steps

Modified Files:
	python.py 
Log Message:
[project @ steps.python.PyFlakes: make it compatible with python-2.2]

Original author: warner at lothar.com
Date: 2006-09-20 06:31:29

Index: python.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/steps/python.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- python.py	19 Sep 2006 18:46:55 -0000	1.3
+++ python.py	20 Sep 2006 06:33:35 -0000	1.4
@@ -66,13 +66,13 @@
             summaries[m] = []
 
         for line in StringIO(log.getText()).readlines():
-            if "imported but unused" in line:
+            if line.find("imported but unused") != -1:
                 m = "unused"
-            elif "*' used; unable to detect undefined names" in line:
+            elif line.find("*' used; unable to detect undefined names") != -1:
                 m = "import*"
-            elif "undefined name" in line:
+            elif line.find("undefined name") != -1:
                 m = "undefined"
-            elif "redefinition of unused" in line:
+            elif line.find("redefinition of unused") != -1:
                 m = "redefs"
             else:
                 m = "misc"





More information about the Commits mailing list