mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Don't insist on cStringIO.
This commit is contained in:
parent
e2c8f2d581
commit
62b8871561
1 changed files with 2 additions and 2 deletions
|
|
@ -128,7 +128,7 @@ import getopt
|
||||||
import random
|
import random
|
||||||
import warnings
|
import warnings
|
||||||
import re
|
import re
|
||||||
import cStringIO
|
import StringIO
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
# I see no other way to suppress these warnings;
|
# I see no other way to suppress these warnings;
|
||||||
|
|
@ -540,7 +540,7 @@ def runtest_inner(test, generate, verbose, quiet,
|
||||||
if verbose:
|
if verbose:
|
||||||
cfp = None
|
cfp = None
|
||||||
else:
|
else:
|
||||||
cfp = cStringIO.StringIO()
|
cfp = StringIO.StringIO() # XXX Should use io.StringIO()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
save_stdout = sys.stdout
|
save_stdout = sys.stdout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue