summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/pysource.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-08-03 17:06:41 (GMT)
committerCollin Winter <collinw@gmail.com>2007-08-03 17:06:41 (GMT)
commit6afaeb757af0dbd8508a0f2352ade61e41bec84c (patch)
treef1b31bc7138b17ff39791bbb45aa81583c3b6e46 /Tools/scripts/pysource.py
parente5d0e8431f929cad2da77b63fe1b7dc0ff21a428 (diff)
downloadcpython-6afaeb757af0dbd8508a0f2352ade61e41bec84c.zip
cpython-6afaeb757af0dbd8508a0f2352ade61e41bec84c.tar.gz
cpython-6afaeb757af0dbd8508a0f2352ade61e41bec84c.tar.bz2
Convert print statements to function calls in Tools/.
Diffstat (limited to 'Tools/scripts/pysource.py')
-rw-r--r--Tools/scripts/pysource.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/scripts/pysource.py b/Tools/scripts/pysource.py
index 98a78f0..959deb0 100644
--- a/Tools/scripts/pysource.py
+++ b/Tools/scripts/pysource.py
@@ -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)