[Buildbot-commits] buildbot/buildbot/test test_config.py, 1.49, 1.50 test_vc.py, 1.76, 1.77

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


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

Modified Files:
	test_config.py test_vc.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: test_config.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_config.py,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- test_config.py	1 Aug 2007 22:09:11 -0000	1.49
+++ test_config.py	2 Aug 2007 00:07:18 -0000	1.50
@@ -1,6 +1,5 @@
 # -*- test-case-name: buildbot.test.test_config -*-
 
-from __future__ import generators
 import os
 
 from twisted.trial import unittest

Index: test_vc.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_vc.py,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- test_vc.py	1 Aug 2007 20:31:27 -0000	1.76
+++ test_vc.py	2 Aug 2007 00:07:18 -0000	1.77
@@ -1,9 +1,8 @@
 # -*- test-case-name: buildbot.test.test_vc -*-
 
-from __future__ import generators
-
 import sys, os, time, re
 from email.Utils import mktime_tz, parsedate_tz
+from cStringIO import StringIO
 
 from twisted.trial import unittest
 from twisted.internet import defer, reactor, utils, protocol, error
@@ -53,17 +52,11 @@
 # use a predetermined Internet-domain port number, unless we want to go
 # all-out: bind the listen socket ourselves and pretend to be inetd.
 
-try:
-    import cStringIO
-    StringIO = cStringIO
-except ImportError:
-    import StringIO
-
 class _PutEverythingGetter(protocol.ProcessProtocol):
     def __init__(self, deferred, stdin):
         self.deferred = deferred
-        self.outBuf = StringIO.StringIO()
-        self.errBuf = StringIO.StringIO()
+        self.outBuf = StringIO()
+        self.errBuf = StringIO()
         self.outReceived = self.outBuf.write
         self.errReceived = self.errBuf.write
         self.stdin = stdin





More information about the Commits mailing list