[Python-checkins] r68366 - sandbox/trunk/io-c/_bufferedio.c
antoine.pitrou
python-checkins at python.org
Wed Jan 7 00:30:30 CET 2009
Author: antoine.pitrou
Date: Wed Jan 7 00:30:30 2009
New Revision: 68366
Log:
Really protected Buffered_seek :)
Modified:
sandbox/trunk/io-c/_bufferedio.c
Modified: sandbox/trunk/io-c/_bufferedio.c
==============================================================================
--- sandbox/trunk/io-c/_bufferedio.c (original)
+++ sandbox/trunk/io-c/_bufferedio.c Wed Jan 7 00:30:30 2009
@@ -682,6 +682,8 @@
}
/* TODO: sanity check whence value */
+ ENTER_BUFFERED(self)
+
if (whence != 2 && self->readable) {
/* Check if seeking leaves us inside the current buffer,
so as to return quickly if possible.
@@ -723,6 +725,7 @@
_BufferedReader_reset_buf(self);
end:
+ LEAVE_BUFFERED(self)
return res;
}
More information about the Python-checkins
mailing list