[Buildbot-commits] buildbot/buildbot/changes base.py, 1.1, 1.2 changes.py, 1.27, 1.28 dnotify.py, 1.3, 1.4 mail.py, 1.20, 1.21 maildir.py, 1.7, 1.8 pb.py, 1.11, 1.12

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


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

Modified Files:
	base.py changes.py dnotify.py mail.py maildir.py pb.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: base.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/base.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- base.py	17 May 2005 10:14:09 -0000	1.1
+++ base.py	6 Sep 2006 00:41:54 -0000	1.2
@@ -1,7 +1,6 @@
 #! /usr/bin/python
 
 from twisted.application import service
-from twisted.python import components
 
 from buildbot.twcompat import implements
 from buildbot.interfaces import IChangeSource

Index: changes.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/changes.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- changes.py	5 Nov 2005 22:52:59 -0000	1.27
+++ changes.py	6 Sep 2006 00:41:54 -0000	1.28
@@ -1,17 +1,16 @@
 #! /usr/bin/python
 
 from __future__ import generators
-import string, sys, os, os.path, time, types
+import sys, os, time
 try:
-    import cPickle as pickle
+    import cPickle
+    pickle = cPickle
 except ImportError:
     import pickle
 
-from twisted.python import log, components
+from twisted.python import log
 from twisted.internet import defer
-from twisted.spread import pb
 from twisted.application import service
-from twisted.cred import portal
 from twisted.web import html
 
 from buildbot import interfaces, util

Index: dnotify.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/dnotify.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- dnotify.py	4 May 2005 07:04:18 -0000	1.3
+++ dnotify.py	6 Sep 2006 00:41:54 -0000	1.4
@@ -71,7 +71,6 @@
 
 def test_dnotify1():
     d = DNotify(".")
-    import time
     while 1:
         signal.pause()
 
@@ -93,7 +92,6 @@
     d1.callback = fire1
     def fire2(): print "foo/ changed!"
     d2 = DNotify("foo", fire2)
-    import time
     while 1:
         signal.pause()
         

Index: mail.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/mail.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- mail.py	19 Jul 2005 19:49:36 -0000	1.20
+++ mail.py	6 Sep 2006 00:41:54 -0000	1.21
@@ -3,7 +3,7 @@
 """
 Parse various kinds of 'CVS notify' email.
 """
-import os, os.path, re
+import os, re
 from rfc822 import Message
 
 from buildbot import util

Index: maildir.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/maildir.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- maildir.py	2 Oct 2005 23:25:10 -0000	1.7
+++ maildir.py	6 Sep 2006 00:41:54 -0000	1.8
@@ -16,7 +16,7 @@
     have_dnotify = 1
 except:
     have_dnotify = 0
-import os, os.path
+import os
 
 class Maildir:
     """This is a class which watches a maildir for new messages. Once

Index: pb.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/pb.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- pb.py	21 Aug 2006 03:38:04 -0000	1.11
+++ pb.py	6 Sep 2006 00:41:54 -0000	1.12
@@ -1,8 +1,5 @@
 # -*- test-case-name: buildbot.test.test_changes -*-
 
-import os, os.path
-
-from twisted.application import service
 from twisted.python import log
 
 from buildbot.pbutil import NewCredPerspective





More information about the Commits mailing list