summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/checkappend.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/checkappend.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/checkappend.py')
-rwxr-xr-xTools/scripts/checkappend.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/scripts/checkappend.py b/Tools/scripts/checkappend.py
index 2025ba9..8953285 100755
--- a/Tools/scripts/checkappend.py
+++ b/Tools/scripts/checkappend.py
@@ -65,7 +65,7 @@ def main():
def check(file):
if os.path.isdir(file) and not os.path.islink(file):
if verbose:
- print "%r: listing directory" % (file,)
+ print("%r: listing directory" % (file,))
names = os.listdir(file)
for name in names:
fullname = os.path.join(file, name)
@@ -82,11 +82,11 @@ def check(file):
return
if verbose > 1:
- print "checking %r ..." % (file,)
+ print("checking %r ..." % (file,))
ok = AppendChecker(file, f).run()
if verbose and ok:
- print "%r: Clean bill of health." % (file,)
+ print("%r: Clean bill of health." % (file,))
[FIND_DOT,
FIND_APPEND,
@@ -149,8 +149,8 @@ class AppendChecker:
state = FIND_DOT
elif token == "," and self.level == 1:
self.nerrors = self.nerrors + 1
- print "%s(%d):\n%s" % (self.fname, self.lineno,
- self.line)
+ print("%s(%d):\n%s" % (self.fname, self.lineno,
+ self.line))
# don't gripe about this stmt again
state = FIND_STMT