mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15: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
|
@ -48,12 +48,12 @@ def main():
|
|||
if progname == '-c': progname = 'mkreal'
|
||||
args = sys.argv[1:]
|
||||
if not args:
|
||||
print 'usage:', progname, 'path ...'
|
||||
print('usage:', progname, 'path ...')
|
||||
sys.exit(2)
|
||||
status = 0
|
||||
for name in args:
|
||||
if not os.path.islink(name):
|
||||
print progname+':', name+':', 'not a symlink'
|
||||
print(progname+':', name+':', 'not a symlink')
|
||||
status = 1
|
||||
else:
|
||||
if os.path.isdir(name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue