Replace backticks with repr() or "%r"
From SF patch #852334.
diff --git a/Lib/profile.py b/Lib/profile.py
index 5993442..2dc6e87 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -411,7 +411,7 @@
# This method is more useful to profile a single function call.
def runcall(self, func, *args, **kw):
- self.set_cmd(`func`)
+ self.set_cmd(repr(func))
sys.setprofile(self.dispatcher)
try:
return func(*args, **kw)
@@ -550,4 +550,4 @@
# Insert script directory in front of module search path
sys.path.insert(0, os.path.dirname(filename))
- run('execfile(' + `filename` + ')')
+ run('execfile(%r)' % (filename,))