diff options
author | Guido van Rossum <guido@python.org> | 2007-02-09 05:37:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-09 05:37:30 (GMT) |
commit | be19ed77ddb047e02fe94d142181062af6d99dcc (patch) | |
tree | 70f214e06554046fcccbadeb78665f25e07ce965 /Lib/formatter.py | |
parent | 452bf519a70c3db0e7f0d2540b1bfb07d9085583 (diff) | |
download | cpython-be19ed77ddb047e02fe94d142181062af6d99dcc.zip cpython-be19ed77ddb047e02fe94d142181062af6d99dcc.tar.gz cpython-be19ed77ddb047e02fe94d142181062af6d99dcc.tar.bz2 |
Fix most trivially-findable print statements.
There's one major and one minor category still unfixed:
doctests are the major category (and I hope to be able to augment the
refactoring tool to refactor bona fide doctests soon);
other code generating print statements in strings is the minor category.
(Oh, and I don't know if the compiler package works.)
Diffstat (limited to 'Lib/formatter.py')
-rw-r--r-- | Lib/formatter.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Lib/formatter.py b/Lib/formatter.py index fa2b389..50a9cd8 100644 --- a/Lib/formatter.py +++ b/Lib/formatter.py @@ -323,37 +323,37 @@ class AbstractWriter(NullWriter): """ def new_alignment(self, align): - print "new_alignment(%r)" % (align,) + print("new_alignment(%r)" % (align,)) def new_font(self, font): - print "new_font(%r)" % (font,) + print("new_font(%r)" % (font,)) def new_margin(self, margin, level): - print "new_margin(%r, %d)" % (margin, level) + print("new_margin(%r, %d)" % (margin, level)) def new_spacing(self, spacing): - print "new_spacing(%r)" % (spacing,) + print("new_spacing(%r)" % (spacing,)) def new_styles(self, styles): - print "new_styles(%r)" % (styles,) + print("new_styles(%r)" % (styles,)) def send_paragraph(self, blankline): - print "send_paragraph(%r)" % (blankline,) + print("send_paragraph(%r)" % (blankline,)) def send_line_break(self): - print "send_line_break()" + print("send_line_break()") def send_hor_rule(self, *args, **kw): - print "send_hor_rule()" + print("send_hor_rule()") def send_label_data(self, data): - print "send_label_data(%r)" % (data,) + print("send_label_data(%r)" % (data,)) def send_flowing_data(self, data): - print "send_flowing_data(%r)" % (data,) + print("send_flowing_data(%r)" % (data,)) def send_literal_data(self, data): - print "send_literal_data(%r)" % (data,) + print("send_literal_data(%r)" % (data,)) class DumbWriter(NullWriter): |