mirror of
https://github.com/python/cpython.git
synced 2025-11-17 01:25:57 +00:00
User cStringIO instead of StringIO.
This commit is contained in:
parent
c8b188a9e2
commit
74e67661a6
1 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ import os
|
||||||
import getopt
|
import getopt
|
||||||
import traceback
|
import traceback
|
||||||
import random
|
import random
|
||||||
import StringIO
|
import cStringIO
|
||||||
import warnings
|
import warnings
|
||||||
from sets import Set
|
from sets import Set
|
||||||
|
|
||||||
|
|
@ -379,7 +379,7 @@ def runtest(test, generate, verbose, quiet, testdir = None):
|
||||||
if verbose:
|
if verbose:
|
||||||
cfp = None
|
cfp = None
|
||||||
else:
|
else:
|
||||||
cfp = StringIO.StringIO()
|
cfp = cStringIO.StringIO()
|
||||||
try:
|
try:
|
||||||
save_stdout = sys.stdout
|
save_stdout = sys.stdout
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue