summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/Wbase.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/IDE/Wbase.py')
-rw-r--r--Mac/Tools/IDE/Wbase.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Mac/Tools/IDE/Wbase.py b/Mac/Tools/IDE/Wbase.py
index 4c78b88..a5d556b 100644
--- a/Mac/Tools/IDE/Wbase.py
+++ b/Mac/Tools/IDE/Wbase.py
@@ -229,7 +229,7 @@ class Widget:
def _removewidget(self, key):
if not self._widgetsdict.has_key(key):
- raise KeyError, "no widget with key " + `key`
+ raise KeyError, "no widget with key %r" % (key,)
widget = self._widgetsdict[key]
for k in widget._widgetsdict.keys():
widget._removewidget(k)
@@ -502,8 +502,8 @@ class HorizontalPanes(Widget):
self._panebounds = []
for i in range(len(self._panesizes)):
panestart, paneend = self._panesizes[i]
- boundsstring = self.boundstemplate % (`panestart`, panestart and halfgutter,
- `paneend`, (paneend <> 1.0) and -halfgutter)
+ boundsstring = self.boundstemplate % (repr(panestart), panestart and halfgutter,
+ repr(paneend), (paneend <> 1.0) and -halfgutter)
self._panebounds.append(eval(boundsstring))
def installbounds(self):
@@ -684,9 +684,9 @@ def CallbackCall(callback, mustfit, *args):
return callback()
else:
if mustfit:
- raise TypeError, "callback accepts wrong number of arguments: " + `len(args)`
+ raise TypeError, "callback accepts wrong number of arguments: %r" % len(args)
else:
- raise TypeError, "callback accepts wrong number of arguments: 0 or " + `len(args)`
+ raise TypeError, "callback accepts wrong number of arguments: 0 or %r" % len(args)
def HasBaseClass(obj, class_):