]> granicus.if.org Git - python/commitdiff
Fix SF Bug #989066
authorNicholas Bastin <nick.bastin@gmail.com>
Mon, 12 Jul 2004 13:44:26 +0000 (13:44 +0000)
committerNicholas Bastin <nick.bastin@gmail.com>
Mon, 12 Jul 2004 13:44:26 +0000 (13:44 +0000)
Lib/profile.py

index 6ed396e0a67aba59c5e039184385b5370bb86e1d..c786c6ae49cbd866e86b75581c112b72604622ac 100755 (executable)
@@ -216,7 +216,7 @@ class Profile:
         t = t[0] + t[1] - self.t - self.bias
 
         if event == "c_call":
-            self.c_func_name = arg
+            self.c_func_name = repr(arg)
 
         if self.dispatch[event](self, frame,t):
             t = timer()
@@ -233,7 +233,7 @@ class Profile:
         t = timer() - self.t - self.bias
 
         if event == "c_call":
-            self.c_func_name = arg
+            self.c_func_name = repr(arg)
 
         if self.dispatch[event](self, frame, t):
             self.t = timer()
@@ -248,7 +248,7 @@ class Profile:
         t = timer()/60.0 - self.t - self.bias
 
         if event == "c_call":
-            self.c_func_name = arg
+            self.c_func_name = repr(arg)
 
         if self.dispatch[event](self, frame, t):
             self.t = timer()/60.0
@@ -262,7 +262,7 @@ class Profile:
         t = get_time() - self.t - self.bias
 
         if event == "c_call":
-            self.c_func_name = arg
+            self.c_func_name = repr(arg)
 
         if self.dispatch[event](self, frame, t):
             self.t = get_time()