[Buildbot-commits] buildbot/buildbot/changes changes.py,1.28,1.29

Brian Warner warner at users.sourceforge.net
Mon Dec 11 08:40:19 UTC 2006


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

Modified Files:
	changes.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: changes.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/changes.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- changes.py	6 Sep 2006 00:41:54 -0000	1.28
+++ changes.py	11 Dec 2006 08:40:17 -0000	1.29
@@ -14,7 +14,7 @@
 from twisted.web import html
 
 from buildbot import interfaces, util
-from buildbot.twcompat import implements, providedBy
+from buildbot.twcompat import implements
 
 html_tmpl = """
 <p>Changed by: <b>%(who)s</b><br />
@@ -180,8 +180,8 @@
         self.nextNumber = 1
 
     def addSource(self, source):
-        assert providedBy(source, interfaces.IChangeSource)
-        assert providedBy(source, service.IService)
+        assert interfaces.IChangeSource.providedBy(source)
+        assert service.IService.providedBy(source)
         if self.debug:
             print "ChangeMaster.addSource", source
         source.setServiceParent(self)





More information about the Commits mailing list