#NEWLINE# def ean13( self , data , **kwargs ) : #NEWLINE# #INDENT# '\n        Render given ``data`` as **EAN-13** barcode symbology.\n        ' #NEWLINE# if ( not re . match ( '\\d{13}' , data ) ) : #NEWLINE# #INDENT# raise ValueError ( 'EAN-13 symbology requires 13 digits of data; got {:d} digits ("{!s}")' . format ( len ( data ) , data ) ) #NEWLINE# #UNINDENT# barcode . validate_barcode_args ( ** kwargs ) #NEWLINE# return self . _ean13_impl ( data , ** kwargs )