Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r73118:796ebef4b291
Date: 2014-08-28 15:55 -0400
http://bitbucket.org/pypy/pypy/changeset/796ebef4b291/

Log:    avoid a tell here by using relative seek

diff --git a/rpython/rlib/streamio.py b/rpython/rlib/streamio.py
--- a/rpython/rlib/streamio.py
+++ b/rpython/rlib/streamio.py
@@ -532,7 +532,7 @@
     def flush_buffers(self):
         if self.buf:
             try:
-                self.do_seek(self.tell(), 0)
+                self.do_seek(self.pos - len(self.buf), 1)
             except (MyNotImplementedError, OSError):
                 pass
             else:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to