(self, msg=None)
Internal: raise UnsupportedOperation if file is not writable
Internal: raise UnsupportedOperation if file is not writable
Internal : raise UnsupportedOperation if file is not writable
def _checkWritable(self, msg=None):
        """Internal: raise UnsupportedOperation if file is not writable
        """
        if not self.writable():
            raise UnsupportedOperation("File or stream is not writable."
                                       if msg is None else msg)
def _checkWritable ( self , msg = None ) : if not self . writable ( ) : raise UnsupportedOperation ( "File or stream is not writable." if msg is None else msg )