summaryrefslogtreecommitdiff
path: root/Lib/profile.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2004-02-12 17:35:32 +0000
committerWalter Dörwald <walter@livinglogic.de>2004-02-12 17:35:32 +0000
commit70a6b49821a3226f55e9716f32d802d06640cb89 (patch)
tree3c8ca10c1fa09e025bd266cf855a00d7d96c55aa /Lib/profile.py
parentecfeb7f095dfd9c1c8929bf3df858ee35e0d9e9e (diff)
downloadcpython-git-70a6b49821a3226f55e9716f32d802d06640cb89.tar.gz
Replace backticks with repr() or "%r"
From SF patch #852334.
Diffstat (limited to 'Lib/profile.py')
-rwxr-xr-xLib/profile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/profile.py b/Lib/profile.py
index 5993442cea..2dc6e8734c 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -411,7 +411,7 @@ class Profile:
# 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 @@ if __name__ == '__main__':
# Insert script directory in front of module search path
sys.path.insert(0, os.path.dirname(filename))
- run('execfile(' + `filename` + ')')
+ run('execfile(%r)' % (filename,))