mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +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
|
@ -52,12 +52,12 @@ def main():
|
|||
lines.reverse()
|
||||
for line in lines:
|
||||
if prog.search(line):
|
||||
print line
|
||||
print(line)
|
||||
|
||||
def usage(msg, code=2):
|
||||
sys.stdout = sys.stderr
|
||||
print msg
|
||||
print __doc__
|
||||
print(msg)
|
||||
print(__doc__)
|
||||
sys.exit(code)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue