mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +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
|
@ -109,14 +109,14 @@ class Stats:
|
|||
cols.insert(0, "ext")
|
||||
def printheader():
|
||||
for col in cols:
|
||||
print "%*s" % (colwidth[col], col),
|
||||
print
|
||||
print("%*s" % (colwidth[col], col), end=' ')
|
||||
print()
|
||||
printheader()
|
||||
for ext in exts:
|
||||
for col in cols:
|
||||
value = self.stats[ext].get(col, "")
|
||||
print "%*s" % (colwidth[col], value),
|
||||
print
|
||||
print("%*s" % (colwidth[col], value), end=' ')
|
||||
print()
|
||||
printheader() # Another header at the bottom
|
||||
|
||||
def main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue