Mercurial > cpython-lru_cache-weakref
diff Tools/scripts/checkappend.py @ 42427:46625e6122e9
Convert print statements to function calls in Tools/.
| author | Collin Winter <collinw@gmail.com> |
|---|---|
| date | Fri, 03 Aug 2007 17:06:41 +0000 |
| parents | 6b18a095c2e7 |
| children | 51e24512e305 |
line wrap: on
line diff
--- a/Tools/scripts/checkappend.py Fri Aug 03 13:45:24 2007 +0000 +++ b/Tools/scripts/checkappend.py Fri Aug 03 17:06:41 2007 +0000 @@ -65,7 +65,7 @@ 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 @@ 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 @@ 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
