[pypy-svn] r47608 - pypy/dist/dotviewer

arigo at codespeak.net arigo at codespeak.net
Fri Oct 19 19:14:20 CEST 2007


Author: arigo
Date: Fri Oct 19 19:14:18 2007
New Revision: 47608

Modified:
   pypy/dist/dotviewer/graphclient.py
   pypy/dist/dotviewer/msgstruct.py
Log:
Windows doesn't support this way of using popen.  Replace it with
an explicit flush().


Modified: pypy/dist/dotviewer/graphclient.py
==============================================================================
--- pypy/dist/dotviewer/graphclient.py	(original)
+++ pypy/dist/dotviewer/graphclient.py	Fri Oct 19 19:14:18 2007
@@ -130,6 +130,6 @@
     else:
         python = sys.executable
     cmdline = '"%s" -u "%s" --stdio' % (python, GRAPHSERVER)
-    child_in, child_out = os.popen2(cmdline, 'tb', 0)
+    child_in, child_out = os.popen2(cmdline, 'tb')
     io = msgstruct.FileIO(child_out, child_in)
     return io

Modified: pypy/dist/dotviewer/msgstruct.py
==============================================================================
--- pypy/dist/dotviewer/msgstruct.py	(original)
+++ pypy/dist/dotviewer/msgstruct.py	Fri Oct 19 19:14:18 2007
@@ -93,6 +93,7 @@
 
     def sendall(self, data):
         self.f_out.write(data)
+        self.f_out.flush()
 
     def recv(self):
         fd = self.f_in.fileno()



More information about the Pypy-commit mailing list