Source

pypy / dotviewer / graphclient.py

Diff from to

dotviewer/graphclient.py

     def reload(graph_id):
         page = getpage(graph_id)
         if save_tmp_file:
+            from drawgraph import forcestr
             f = open(save_tmp_file, 'w')
-            f.write(page.source)
+            f.write(forcestr(page.source))
             f.close()
         messages.extend(page_messages(page, graph_id))
         send_graph_messages(io, messages)
 
 def page_messages(page, graph_id):
     import graphparse
-    return graphparse.parse_dot(graph_id, page.source, page.links,
+    from drawgraph import forcestr
+    return graphparse.parse_dot(graph_id, forcestr(page.source), page.links,
                                 getattr(page, 'fixedfont', False))
 
 def send_graph_messages(io, messages):
             if msg[0] == msgstruct.MSG_OK:
                 break
     except EOFError:
-        ioerror = ioerror or IOError("connexion unexpectedly closed "
+        ioerror = ioerror or IOError("connection unexpectedly closed "
                                      "(graphserver crash?)")
     if ioerror is not None:
         raise ioerror
 
 def spawn_local_handler():
     if hasattr(sys, 'pypy_objspaceclass'):
-        python = 'python'
+        python = '/usr/bin/python'
     else:
         python = sys.executable
     args = [python, '-u', GRAPHSERVER, '--stdio']