[pypy-svn] r33010 - pypy/dist/pypy/translator/cli/src

antocuni at codespeak.net antocuni at codespeak.net
Sun Oct 8 20:40:14 CEST 2006


Author: antocuni
Date: Sun Oct  8 20:40:11 2006
New Revision: 33010

Modified:
   pypy/dist/pypy/translator/cli/src/ll_os.cs
Log:
We don't need to Flush() every time we write to a file.



Modified: pypy/dist/pypy/translator/cli/src/ll_os.cs
==============================================================================
--- pypy/dist/pypy/translator/cli/src/ll_os.cs	(original)
+++ pypy/dist/pypy/translator/cli/src/ll_os.cs	Sun Oct  8 20:40:11 2006
@@ -35,7 +35,6 @@
         {
             Debug.Assert(writer != null); // XXX: raise OSError?
             writer.Write(buffer);
-            writer.Flush();
         }
         
         public string Read(int count)
@@ -67,7 +66,6 @@
                     stream.WriteByte((byte)'\r');
                 stream.WriteByte((byte)ch);
             }
-            stream.Flush(); // XXX: should we flush every time or not?
         }
 
         public string Read(int count)
@@ -108,7 +106,6 @@
         {
             foreach(char ch in buffer)
                 stream.WriteByte((byte)ch);
-            stream.Flush();
         }
 
         public string Read(int count)



More information about the Pypy-commit mailing list