Fix SF Bug #989066
diff --git a/Lib/profile.py b/Lib/profile.py
index 6ed396e..c786c6a 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -216,7 +216,7 @@
         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 @@
         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 @@
         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 @@
         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()