mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Convert print statements to function calls in Tools/.
This commit is contained in:
parent
e5d0e8431f
commit
6afaeb757a
66 changed files with 777 additions and 779 deletions
|
@ -32,7 +32,7 @@ def main():
|
|||
listnames = 0
|
||||
for o, a in opts:
|
||||
if o == "-h":
|
||||
print __doc__
|
||||
print(__doc__)
|
||||
return
|
||||
if o == "-l":
|
||||
listnames = 1
|
||||
|
@ -60,11 +60,11 @@ def process(filename, listnames):
|
|||
for type, token, (row, col), end, line in g:
|
||||
if token in ("/", "/="):
|
||||
if listnames:
|
||||
print filename
|
||||
print(filename)
|
||||
break
|
||||
if row != lastrow:
|
||||
lastrow = row
|
||||
print "%s:%d:%s" % (filename, row, line),
|
||||
print("%s:%d:%s" % (filename, row, line), end=' ')
|
||||
fp.close()
|
||||
|
||||
def processdir(dir, listnames):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue