(self, msg=None)
Internal: raise a ValueError if file is closed
Internal: raise a ValueError if file is closed
Internal : raise a ValueError if file is closed
def _checkClosed(self, msg=None):
        """Internal: raise a ValueError if file is closed
        """
        if self.closed:
            raise ValueError("I/O operation on closed file."
                             if msg is None else msg)
def _checkClosed ( self , msg = None ) : if self . closed : raise ValueError ( "I/O operation on closed file." if msg is None else msg )