summaryrefslogtreecommitdiffstats
path: root/Lib/formatter.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2004-02-12 17:35:32 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2004-02-12 17:35:32 (GMT)
commit70a6b49821a3226f55e9716f32d802d06640cb89 (patch)
tree3c8ca10c1fa09e025bd266cf855a00d7d96c55aa /Lib/formatter.py
parentecfeb7f095dfd9c1c8929bf3df858ee35e0d9e9e (diff)
downloadcpython-70a6b49821a3226f55e9716f32d802d06640cb89.zip
cpython-70a6b49821a3226f55e9716f32d802d06640cb89.tar.gz
cpython-70a6b49821a3226f55e9716f32d802d06640cb89.tar.bz2
Replace backticks with repr() or "%r"
From SF patch #852334.
Diffstat (limited to 'Lib/formatter.py')
-rw-r--r--Lib/formatter.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/Lib/formatter.py b/Lib/formatter.py
index 3868b1b..109d66c 100644
--- a/Lib/formatter.py
+++ b/Lib/formatter.py
@@ -325,22 +325,22 @@ class AbstractWriter(NullWriter):
"""
def new_alignment(self, align):
- print "new_alignment(%s)" % `align`
+ print "new_alignment(%r)" % (align,)
def new_font(self, font):
- print "new_font(%s)" % `font`
+ print "new_font(%r)" % (font,)
def new_margin(self, margin, level):
- print "new_margin(%s, %d)" % (`margin`, level)
+ print "new_margin(%r, %d)" % (margin, level)
def new_spacing(self, spacing):
- print "new_spacing(%s)" % `spacing`
+ print "new_spacing(%r)" % (spacing,)
def new_styles(self, styles):
- print "new_styles(%s)" % `styles`
+ print "new_styles(%r)" % (styles,)
def send_paragraph(self, blankline):
- print "send_paragraph(%s)" % `blankline`
+ print "send_paragraph(%r)" % (blankline,)
def send_line_break(self):
print "send_line_break()"
@@ -349,13 +349,13 @@ class AbstractWriter(NullWriter):
print "send_hor_rule()"
def send_label_data(self, data):
- print "send_label_data(%s)" % `data`
+ print "send_label_data(%r)" % (data,)
def send_flowing_data(self, data):
- print "send_flowing_data(%s)" % `data`
+ print "send_flowing_data(%r)" % (data,)
def send_literal_data(self, data):
- print "send_literal_data(%s)" % `data`
+ print "send_literal_data(%r)" % (data,)
class DumbWriter(NullWriter):