[Buildbot-commits] buildbot/buildbot/process buildstep.py,1.2,1.3
Brian Warner
warner at users.sourceforge.net
Mon Dec 11 08:40:19 UTC 2006
Update of /cvsroot/buildbot/buildbot/buildbot/process
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8921/buildbot/process
Modified Files:
buildstep.py
Log Message:
[project @ more post-Twisted-1.3.0 cleanup: remove twcompat.providedBy, use zope.interface native methods instead]
Original author: warner at lothar.com
Date: 2006-12-11 08:34:42
Index: buildstep.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/process/buildstep.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- buildstep.py 17 Sep 2006 20:39:43 -0000 1.2
+++ buildstep.py 11 Dec 2006 08:40:17 -0000 1.3
@@ -8,7 +8,7 @@
from twisted.web.util import formatFailure
from buildbot import interfaces
-from buildbot.twcompat import implements, providedBy
+from buildbot.twcompat import implements
from buildbot import util
from buildbot.status import progress
from buildbot.status.builder import SUCCESS, WARNINGS, FAILURE, SKIPPED, \
@@ -285,7 +285,7 @@
"""
- assert providedBy(loog, interfaces.ILogFile)
+ assert interfaces.ILogFile.providedBy(loog)
if not logfileName:
logfileName = loog.getName()
assert logfileName not in self.logs
@@ -366,7 +366,7 @@
self.step = step
def setLog(self, loog):
- assert providedBy(loog, interfaces.IStatusLog)
+ assert interfaces.IStatusLog.providedBy(loog)
loog.subscribe(self, True)
def logChunk(self, build, step, log, channel, text):
@@ -844,7 +844,7 @@
self._connectPendingLogObservers()
def addLogObserver(self, logname, observer):
- assert providedBy(observer, interfaces.ILogObserver)
+ assert interfaces.ILogObserver.providedBy(observer)
observer.setStep(self)
self._pendingLogObservers.append((logname, observer))
self._connectPendingLogObservers()
More information about the Commits
mailing list