[Buildbot-commits] buildbot/buildbot/slave commands.py,1.73,1.74

Brian Warner warner at users.sourceforge.net
Mon Dec 11 09:06:37 UTC 2006


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

Modified Files:
	commands.py 
Log Message:
[project @ get implements() from zope.interface directly, not from twcompat]

Original author: warner at lothar.com
Date: 2006-12-11 08:53:40

Index: commands.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/slave/commands.py,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- commands.py	11 Dec 2006 05:21:40 -0000	1.73
+++ commands.py	11 Dec 2006 09:06:35 -0000	1.74
@@ -3,11 +3,12 @@
 import os, re, signal, shutil, types, time
 from stat import ST_CTIME, ST_MTIME, ST_SIZE
 
+from zope.interface import implements
 from twisted.internet.protocol import ProcessProtocol
 from twisted.internet import reactor, defer, task
 from twisted.python import log, failure, runtime
 
-from buildbot.twcompat import implements, which
+from buildbot.twcompat import which
 from buildbot.slave.interfaces import ISlaveCommand
 from buildbot.slave.registry import registerSlaveCommand
 
@@ -537,10 +538,7 @@
 
 
 class Command:
-    if implements:
-        implements(ISlaveCommand)
-    else:
-        __implements__ = ISlaveCommand
+    implements(ISlaveCommand)
 
     """This class defines one command that can be invoked by the build master.
     The command is executed on the slave side, and always sends back a





More information about the Commits mailing list