mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +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
|
@ -59,9 +59,9 @@ FALSE = 0
|
|||
|
||||
def main(loops=LOOPS):
|
||||
benchtime, stones = pystones(loops)
|
||||
print "Pystone(%s) time for %d passes = %g" % \
|
||||
(__version__, loops, benchtime)
|
||||
print "This machine benchmarks at %g pystones/second" % stones
|
||||
print("Pystone(%s) time for %d passes = %g" % \
|
||||
(__version__, loops, benchtime))
|
||||
print("This machine benchmarks at %g pystones/second" % stones)
|
||||
|
||||
|
||||
def pystones(loops=LOOPS):
|
||||
|
@ -251,8 +251,8 @@ def Func3(EnumParIn):
|
|||
if __name__ == '__main__':
|
||||
import sys
|
||||
def error(msg):
|
||||
print >>sys.stderr, msg,
|
||||
print >>sys.stderr, "usage: %s [number_of_loops]" % sys.argv[0]
|
||||
print(msg, end=' ', file=sys.stderr)
|
||||
print("usage: %s [number_of_loops]" % sys.argv[0], file=sys.stderr)
|
||||
sys.exit(100)
|
||||
nargs = len(sys.argv) - 1
|
||||
if nargs > 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue