summaryrefslogtreecommitdiffstats
path: root/Lib/cProfile.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-07-16 23:36:05 (GMT)
committerGuido van Rossum <guido@python.org>2007-07-16 23:36:05 (GMT)
commit1c5a98a360093a99136f2a87251aa7c53b87170b (patch)
tree5ed5cf22bec00126d3337b61f23a3bf35366ec8f /Lib/cProfile.py
parentd77d6992a5e31660a9eb8dc02f6c28d464c75ed8 (diff)
downloadcpython-1c5a98a360093a99136f2a87251aa7c53b87170b.zip
cpython-1c5a98a360093a99136f2a87251aa7c53b87170b.tar.gz
cpython-1c5a98a360093a99136f2a87251aa7c53b87170b.tar.bz2
Fix for cProfile.
SF patch# 1755176 by Amaury Forgeot d'Arc.
Diffstat (limited to 'Lib/cProfile.py')
-rwxr-xr-xLib/cProfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cProfile.py b/Lib/cProfile.py
index fb434bd..d10b7ab 100755
--- a/Lib/cProfile.py
+++ b/Lib/cProfile.py
@@ -153,7 +153,7 @@ class Profile(_lsprof.Profiler):
# ____________________________________________________________
def label(code):
- if isinstance(code, str):
+ if isinstance(code, basestring):
return ('~', 0, code) # built-in functions ('~' sorts at the end)
else:
return (code.co_filename, code.co_firstlineno, code.co_name)