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