]> granicus.if.org Git - python/commitdiff
Don't insist on cStringIO.
authorGuido van Rossum <guido@python.org>
Wed, 9 May 2007 23:45:09 +0000 (23:45 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 9 May 2007 23:45:09 +0000 (23:45 +0000)
Lib/test/regrtest.py

index 87d9dc9c37fc4b565b2d0e4180b800749daf00f1..331b4416e41445ba40a4f7a29fb01157396f23da 100755 (executable)
@@ -128,7 +128,7 @@ import getopt
 import random
 import warnings
 import re
-import cStringIO
+import StringIO
 import traceback
 
 # I see no other way to suppress these warnings;
@@ -540,7 +540,7 @@ def runtest_inner(test, generate, verbose, quiet,
     if verbose:
         cfp = None
     else:
-        cfp = cStringIO.StringIO()
+        cfp = StringIO.StringIO()  # XXX Should use io.StringIO()
 
     try:
         save_stdout = sys.stdout