Replace backticks with repr() or "%r"
From SF patch #852334.
diff --git a/Mac/Tools/IDE/Wapplication.py b/Mac/Tools/IDE/Wapplication.py
index ada4419..a63be2a 100644
--- a/Mac/Tools/IDE/Wapplication.py
+++ b/Mac/Tools/IDE/Wapplication.py
@@ -118,7 +118,7 @@
func()
except:
import sys
- sys.stderr.write("exception in idle function %s; killed:\n" % `func`)
+ sys.stderr.write("exception in idle function %r; killed:\n" % (func,))
traceback.print_exc()
self._idlefuncs.remove(func)
break
@@ -175,7 +175,7 @@
self.do_rawmenu(id, item, None, event)
return # here! we had a menukey!
#else:
- # print "XXX Command-" +`ch`
+ # print "XXX Command-%r" % ch
# See whether the front window wants it
if wid and self._windows.has_key(wid):
window = self._windows[wid]