def ean8(self, data, **kwargs):
if not re.match(r'<STR_LIT>', data):<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>'.format(len(data), data))<EOL><DEDENT>barcode.validate_barcode_args(**kwargs)<EOL>return self._ean8_impl(data, **kwargs)<EOL>
Render given ``data`` as **JAN-8/EAN-8** barcode symbology.