[Buildbot-commits] buildbot/buildbot buildset.py, 1.4, 1.5 dnotify.py, 1.1, 1.2 master.py, 1.95, 1.96 scheduler.py, 1.17, 1.18 twcompat.py, 1.7, 1.8 util.py, 1.9, 1.10

Brian Warner warner at users.sourceforge.net
Wed Sep 6 00:41:56 UTC 2006


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

Modified Files:
	buildset.py dnotify.py master.py scheduler.py twcompat.py 
	util.py 
Log Message:
[project @ remove a lot of unused imports, marked by pyflakes]

Original author: warner at lothar.com
Date: 2006-09-06 00:35:06

Index: buildset.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/buildset.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- buildset.py	12 Mar 2006 11:28:04 -0000	1.4
+++ buildset.py	6 Sep 2006 00:41:54 -0000	1.5
@@ -1,6 +1,4 @@
 
-from twisted.internet import defer
-
 from buildbot.process import base
 from buildbot.status import builder
 

Index: dnotify.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/dnotify.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- dnotify.py	12 Feb 2003 21:56:57 -0000	1.1
+++ dnotify.py	6 Sep 2006 00:41:54 -0000	1.2
@@ -73,7 +73,6 @@
 
 def test_dnotify1():
     d = DNotify(".")
-    import time
     while 1:
         signal.pause()
 
@@ -95,7 +94,6 @@
     d1.callback = fire1
     def fire2(): print "foo/ changed!"
     d2 = DNotify("foo", fire2)
-    import time
     while 1:
         signal.pause()
         

Index: master.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/master.py,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- master.py	24 Aug 2006 10:05:16 -0000	1.95
+++ master.py	6 Sep 2006 00:41:54 -0000	1.96
@@ -1,17 +1,19 @@
 # -*- test-case-name: buildbot.test.test_run -*-
 
 from __future__ import generators
-import string, sys, os, time, warnings
+import string, os
+signal = None
 try:
     import signal
 except ImportError:
-    signal = None
+    pass
 try:
-    import cPickle as pickle
+    import cPickle
+    pickle = cPickle
 except ImportError:
     import pickle
 
-from twisted.python import log, usage, components
+from twisted.python import log, components
 from twisted.internet import defer, reactor
 from twisted.spread import pb
 from twisted.cred import portal, checkers
@@ -19,12 +21,11 @@
 from twisted.persisted import styles
 
 # sibling imports
-from buildbot import util
 from buildbot.twcompat import implements
 from buildbot.util import now
 from buildbot.pbutil import NewCredPerspective
 from buildbot.process.builder import Builder, IDLE
-from buildbot.status.builder import BuilderStatus, SlaveStatus, Status
+from buildbot.status.builder import SlaveStatus, Status
 from buildbot.changes.changes import Change, ChangeMaster
 from buildbot import interfaces
 

Index: scheduler.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/scheduler.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- scheduler.py	7 May 2006 18:36:41 -0000	1.17
+++ scheduler.py	6 Sep 2006 00:41:54 -0000	1.18
@@ -10,7 +10,6 @@
 from twisted.spread import pb
 
 from buildbot import interfaces, buildset, util, pbutil
-from buildbot.util import now
 from buildbot.status import builder
 from buildbot.twcompat import implements, providedBy
 from buildbot.sourcestamp import SourceStamp

Index: twcompat.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/twcompat.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- twcompat.py	16 Jul 2006 00:59:14 -0000	1.7
+++ twcompat.py	6 Sep 2006 00:41:54 -0000	1.8
@@ -23,12 +23,13 @@
     assert providedBy(obj, IFoo)
 """
 
-import os, os.path
+import os
 
 from twisted.copyright import version
 from twisted.python import components
 
 # does our Twisted use zope.interface?
+implements = None
 if hasattr(components, "interface"):
     # yes
     from zope.interface import implements
@@ -37,7 +38,6 @@
         return iface.providedBy(obj)
 else:
     # nope
-    implements = None
     from twisted.python.components import Interface
     providedBy = components.implements
 
@@ -216,7 +216,8 @@
     from twisted.internet import reactor, protocol
     _callProtocolWithDeferred = utils._callProtocolWithDeferred
     try:
-        import cStringIO as StringIO
+        import cStringIO
+        StringIO = cStringIO
     except ImportError:
         import StringIO
 
@@ -279,7 +280,8 @@
                 result.append(pext)
     return result
 
+which = _which
 try:
     from twisted.python.procutils import which
 except ImportError:
-    which = _which
+    pass

Index: util.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/util.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- util.py	5 Nov 2005 22:52:59 -0000	1.9
+++ util.py	6 Sep 2006 00:41:54 -0000	1.10
@@ -1,7 +1,6 @@
 # -*- test-case-name: buildbot.test.test_util -*-
 
 from twisted.internet.defer import Deferred
-from twisted.python import log
 from twisted.spread import pb
 import time
 





More information about the Commits mailing list