summaryrefslogtreecommitdiffstats
path: root/Lib/profile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-06-22 18:52:35 (GMT)
committerGuido van Rossum <guido@python.org>1995-06-22 18:52:35 (GMT)
commit8afa8245bb40a13d004bf41158142bf695e3a003 (patch)
tree1b49fb572675adbed7a61cc74d1df91c8a3e6fca /Lib/profile.py
parentf71c79bb851169f6a24f7c5333674f3e81790a87 (diff)
downloadcpython-8afa8245bb40a13d004bf41158142bf695e3a003.zip
cpython-8afa8245bb40a13d004bf41158142bf695e3a003.tar.gz
cpython-8afa8245bb40a13d004bf41158142bf695e3a003.tar.bz2
functions don't have a __name__ attribute
Diffstat (limited to 'Lib/profile.py')
-rwxr-xr-xLib/profile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/profile.py b/Lib/profile.py
index 35ed63e..f41a8ae 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -406,7 +406,7 @@ class Profile:
# This method is more useful to profile a single function call.
def runcall(self, func, *args):
- self.set_cmd(func.__name__)
+ self.set_cmd(`func`)
sys.setprofile(self.trace_dispatch)
try:
apply(func, args)