mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +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
|
@ -27,7 +27,7 @@ binary_re = re.compile('[\x00-\x08\x0E-\x1F\x7F]')
|
|||
debug = False
|
||||
|
||||
def print_debug(msg):
|
||||
if debug: print msg
|
||||
if debug: print(msg)
|
||||
|
||||
|
||||
def _open(fullpath):
|
||||
|
@ -124,7 +124,7 @@ def walk_python_files(paths, is_python=looks_like_python, exclude_dirs=None):
|
|||
if __name__ == "__main__":
|
||||
# Two simple examples/tests
|
||||
for fullpath in walk_python_files(['.']):
|
||||
print fullpath
|
||||
print "----------"
|
||||
print(fullpath)
|
||||
print("----------")
|
||||
for fullpath in walk_python_files(['.'], is_python=can_be_compiled):
|
||||
print fullpath
|
||||
print(fullpath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue