[Python-checkins] r69865 - python/branches/io-c/Lib/_pyio.py
benjamin.peterson
python-checkins at python.org
Sun Feb 22 01:59:53 CET 2009
Author: benjamin.peterson
Date: Sun Feb 22 01:59:52 2009
New Revision: 69865
Log:
don't use super here()
Modified:
python/branches/io-c/Lib/_pyio.py
Modified: python/branches/io-c/Lib/_pyio.py
==============================================================================
--- python/branches/io-c/Lib/_pyio.py (original)
+++ python/branches/io-c/Lib/_pyio.py Sun Feb 22 01:59:52 2009
@@ -1124,7 +1124,9 @@
self.flush()
# First do the raw seek, then empty the read buffer, so that
# if the raw seek fails, we don't lose buffered data forever.
- pos = super().seek(pos, whence)
+ pos = self.raw.seek(pos, whence)
+ if pos < 0:
+ raise IOError("seek() returned invalid position")
with self._read_lock:
self._reset_read_buf()
return pos
More information about the Python-checkins
mailing list