[Buildbot-commits] buildbot/buildbot locks.py,1.2,1.3

Brian Warner warner at users.sourceforge.net
Thu Aug 11 20:27:50 UTC 2005


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

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

s/%x/%d/ for id() to avoid silly warning

	* buildbot/locks.py: use %d for id() instead of %x, avoid a silly
	warning message

--This line, and those below, will be ignored--
Files to commit:
   <can't compute list>

This list might be incomplete or outdated if editing the log
message was not invoked from an up-to-date changes buffer!


Index: locks.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/locks.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- locks.py	20 Jul 2005 08:08:24 -0000	1.2
+++ locks.py	11 Aug 2005 20:27:48 -0000	1.3
@@ -51,7 +51,7 @@
     compare_attrs = ['name']
     def __init__(self, name):
         BaseLock.__init__(self, name)
-        self.description = "<MasterLock(%s) %x>" % (name, id(self))
+        self.description = "<MasterLock(%s) %d>" % (name, id(self))
 
     def getLock(self, slave):
         return self
@@ -66,7 +66,7 @@
         slavename = slavebuilder.slave.slavename
         if not self.locks.has_key(slavename):
             lock = self.locks[slavename] = BaseLock(self.name)
-            lock.description = "<SlaveLock(%s)[%s] %x>" % (self.name,
+            lock.description = "<SlaveLock(%s)[%s] %d>" % (self.name,
                                                             slavename,
                                                             id(lock))
             self.locks[slavename] = lock





More information about the Commits mailing list