(self, buf, mode="wb")
Write buffer to file
Write buffer to file
Write buffer to file
def putdata(self, buf, mode="wb"):
        """Write buffer to file"""
        try:
            with open(self.filename, mode) as filep:
                filep.write(buf)
            return buf
        except (IOError, OSError, TypeError):
            return ""
def putdata ( self , buf , mode = "wb" ) : try : with open ( self . filename , mode ) as filep : filep . write ( buf ) return buf except ( IOError , OSError , TypeError ) : return ""