mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix most trivially-findable print statements.
There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
This commit is contained in:
parent
452bf519a7
commit
be19ed77dd
331 changed files with 2567 additions and 2648 deletions
|
@ -28,14 +28,14 @@ def task():
|
|||
def test_import_hangers():
|
||||
import sys
|
||||
if verbose:
|
||||
print "testing import hangers ...",
|
||||
print("testing import hangers ...", end=' ')
|
||||
|
||||
import test.threaded_import_hangers
|
||||
try:
|
||||
if test.threaded_import_hangers.errors:
|
||||
raise TestFailed(test.threaded_import_hangers.errors)
|
||||
elif verbose:
|
||||
print "OK."
|
||||
print("OK.")
|
||||
finally:
|
||||
# In case this test is run again, make sure the helper module
|
||||
# gets loaded from scratch again.
|
||||
|
@ -61,12 +61,12 @@ def test_main(): # magic name! see above
|
|||
done.acquire()
|
||||
for N in (20, 50) * 3:
|
||||
if verbose:
|
||||
print "Trying", N, "threads ...",
|
||||
print("Trying", N, "threads ...", end=' ')
|
||||
for i in range(N):
|
||||
thread.start_new_thread(task, ())
|
||||
done.acquire()
|
||||
if verbose:
|
||||
print "OK."
|
||||
print("OK.")
|
||||
done.release()
|
||||
|
||||
test_import_hangers()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue