Fix for cProfile.
SF patch# 1755176 by Amaury Forgeot d'Arc.
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 @@
 # ____________________________________________________________
 
 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)