diff options
author | Walter Dörwald <walter@livinglogic.de> | 2004-02-12 17:35:32 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2004-02-12 17:35:32 (GMT) |
commit | 70a6b49821a3226f55e9716f32d802d06640cb89 (patch) | |
tree | 3c8ca10c1fa09e025bd266cf855a00d7d96c55aa /Mac/Demo/waste | |
parent | ecfeb7f095dfd9c1c8929bf3df858ee35e0d9e9e (diff) | |
download | cpython-70a6b49821a3226f55e9716f32d802d06640cb89.zip cpython-70a6b49821a3226f55e9716f32d802d06640cb89.tar.gz cpython-70a6b49821a3226f55e9716f32d802d06640cb89.tar.bz2 |
Replace backticks with repr() or "%r"
From SF patch #852334.
Diffstat (limited to 'Mac/Demo/waste')
-rw-r--r-- | Mac/Demo/waste/htmled.py | 8 | ||||
-rw-r--r-- | Mac/Demo/waste/swed.py | 4 | ||||
-rw-r--r-- | Mac/Demo/waste/wed.py | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/Mac/Demo/waste/htmled.py b/Mac/Demo/waste/htmled.py index d415de1..8710766 100644 --- a/Mac/Demo/waste/htmled.py +++ b/Mac/Demo/waste/htmled.py @@ -516,7 +516,7 @@ class Wed(Application): self.sizemenu = Menu(self.menubar, "Size") self.sizeitems = [] for n in SIZES: - m = MenuItem(self.sizemenu, `n`, "", self.selsize) + m = MenuItem(self.sizemenu, repr(n), "", self.selsize) self.sizeitems.append(m) self.sizemenu.addseparator() self.sizeitem_bigger = MenuItem(self.sizemenu, "Bigger", "+", @@ -670,7 +670,7 @@ class Wed(Application): data = fp.read() fp.close() except IOError, arg: - EasyDialogs.Message("IOERROR: "+`arg`) + EasyDialogs.Message("IOERROR: %r" % (arg,)) return else: path = None @@ -688,7 +688,7 @@ class Wed(Application): try: fp = open(path, 'rb') # NOTE binary, we need cr as end-of-line except IOError, arg: - EasyDialogs.Message("IOERROR: "+`arg`) + EasyDialogs.Message("IOERROR: %r" % (args,)) return self.active.menu_insert(fp) else: @@ -702,7 +702,7 @@ class Wed(Application): try: fp = open(path, 'r') except IOError, arg: - EasyDialogs.Message("IOERROR: "+`arg`) + EasyDialogs.Message("IOERROR: %r" % (arg,)) return self.active.menu_insert_html(fp) else: diff --git a/Mac/Demo/waste/swed.py b/Mac/Demo/waste/swed.py index c85cb21..ca77293 100644 --- a/Mac/Demo/waste/swed.py +++ b/Mac/Demo/waste/swed.py @@ -375,7 +375,7 @@ class Wed(Application): self.sizemenu = Menu(self.menubar, "Size") self.sizeitems = [] for n in SIZES: - m = MenuItem(self.sizemenu, `n`, "", self.selsize) + m = MenuItem(self.sizemenu, repr(n), "", self.selsize) self.sizeitems.append(m) self.sizemenu.addseparator() self.sizeitem_bigger = MenuItem(self.sizemenu, "Bigger", "+", @@ -529,7 +529,7 @@ class Wed(Application): data = fp.read() fp.close() except IOError, arg: - EasyDialogs.Message("IOERROR: "+`arg`) + EasyDialogs.Message("IOERROR: %r" % (arg,)) return else: path = None diff --git a/Mac/Demo/waste/wed.py b/Mac/Demo/waste/wed.py index 7161ae5..5d84b40 100644 --- a/Mac/Demo/waste/wed.py +++ b/Mac/Demo/waste/wed.py @@ -338,7 +338,7 @@ class Wed(Application): data = fp.read() fp.close() except IOError, arg: - EasyDialogs.Message("IOERROR: "+`arg`) + EasyDialogs.Message("IOERROR: %r" % (arg,)) return else: path = None |