def write(self, b):
        if self._read_buf:
            # Undo readahead
            with self._read_lock:
                self.raw.seek(len(self._read_buf) - self._read_pos, 1)
                self._reset_read_buf()
        return BufferedWriter.write(self, b)
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/io.py/BufferedRandom.write/swapped operands of `-`