def create_gnu_header(self, info, encoding, errors):
info["<STR_LIT>"] = GNU_MAGIC<EOL>buf = b"<STR_LIT>"<EOL>if len(info["<STR_LIT>"]) > LENGTH_LINK:<EOL><INDENT>buf += self._create_gnu_long_header(info["<STR_LIT>"], GNUTYPE_LONGLINK, encoding, errors)<EOL><DEDENT>if len(info["<STR_LIT:name>"]) > LENGTH_NAME:<EOL><INDENT>buf += self._create_gnu_long_header(info["<STR_LIT:name>"], GNUTYPE_LONGNAME, encoding, errors)<EOL><DEDENT>return buf + self._create_header(info, GNU_FORMAT, encoding, errors)<EOL>
Return the object as a GNU header block sequence.