(self)
Raises a ValueError if the underlying file object has been closed.
Raises a ValueError if the underlying file object has been closed.
Raises a ValueError if the underlying file object has been closed .
def _check_closed(self):
        """Raises a ValueError if the underlying file object has been closed.

        """
        if self.closed:
            raise ValueError('I/O operation on closed file.')
def _check_closed ( self ) : if self . closed : raise ValueError ( 'I/O operation on closed file.' )