[Buildbot-commits] buildbot/buildbot/changes base.py, 1.3, 1.4 changes.py, 1.32, 1.33 freshcvs.py, 1.23, 1.24 freshcvsmail.py, 1.5, 1.6 maildir.py, 1.9, 1.10

Brian Warner warner at users.sourceforge.net
Thu Aug 2 00:07:20 UTC 2007


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

Modified Files:
	base.py changes.py freshcvs.py freshcvsmail.py maildir.py 
Log Message:
[project @ bring import statements up-to-date, remove spurious shebang lines]

Original author: warner at lothar.com
Date: 2007-08-01 23:59:37+00:00

Index: base.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/base.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- base.py	11 Dec 2006 09:06:34 -0000	1.3
+++ base.py	2 Aug 2007 00:07:18 -0000	1.4
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 
 from zope.interface import implements
 from twisted.application import service

Index: changes.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/changes.py,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- changes.py	1 Aug 2007 23:42:27 -0000	1.32
+++ changes.py	2 Aug 2007 00:07:18 -0000	1.33
@@ -1,12 +1,6 @@
-#! /usr/bin/python
 
-from __future__ import generators
 import sys, os, time
-try:
-    import cPickle
-    pickle = cPickle
-except ImportError:
-    import pickle
+from cPickle import dump
 
 from zope.interface import implements
 from twisted.python import log
@@ -265,7 +259,7 @@
         filename = os.path.join(self.basedir, "changes.pck")
         tmpfilename = filename + ".tmp"
         try:
-            pickle.dump(self, open(tmpfilename, "wb"))
+            dump(self, open(tmpfilename, "wb"))
             if sys.platform == 'win32':
                 # windows cannot rename a file on top of an existing one
                 if os.path.exists(filename):

Index: freshcvs.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/freshcvs.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- freshcvs.py	11 Dec 2006 09:06:34 -0000	1.23
+++ freshcvs.py	2 Aug 2007 00:07:18 -0000	1.24
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 
 import os.path
 

Index: freshcvsmail.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/freshcvsmail.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- freshcvsmail.py	23 Jan 2007 21:04:40 -0000	1.5
+++ freshcvsmail.py	2 Aug 2007 00:07:18 -0000	1.6
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 
 # leftover import for compatibility
 

Index: maildir.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/changes/maildir.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- maildir.py	23 Jan 2007 21:04:32 -0000	1.9
+++ maildir.py	2 Aug 2007 00:07:18 -0000	1.10
@@ -1,4 +1,3 @@
-#! /usr/bin/python
 
 # This is a class which watches a maildir for new messages. It uses the
 # linux dirwatcher API (if available) to look for new files. The





More information about the Commits mailing list