def METHOD_NAME(self, filename, arcname=None, compress_type=None):
    with open(filename, 'rb') as f:
        st = os.fstat(f.fileno())
        data = f.read()
    zinfo = ZipInfo(arcname or filename, date_time=get_zipinfo_datetime(st.st_mtime))
    zinfo.external_attr = st.st_mode << 16
    zinfo.compress_type = ZIP_DEFLATED
    self.writestr(zinfo, data, compress_type)