(self, mode="rb")
Read file content to a buffer
Read file content to a buffer
Read file content to a buffer
def getdata(self, mode="rb"):
        """Read file content to a buffer"""
        try:
            with open(self.filename, mode) as filep:
                buf = filep.read()
            Msg().out("Info: read buf", buf, l=Msg.DBG)
            return buf
        except (IOError, OSError, TypeError):
            return ""
def getdata ( self , mode = "rb" ) : try : with open ( self . filename , mode ) as filep : buf = filep . read ( ) Msg ( ) . out ( "Info: read buf" , buf , l = Msg . DBG ) return buf except ( IOError , OSError , TypeError ) : return ""