#NEWLINE# @ classmethod #NEWLINE# def from_excellon( cls , line , **kwargs ) : #NEWLINE# #INDENT# if ( not ( ( 'M71' in cls ) or ( 'M72' in line ) ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Not a measuring mode statement' ) #NEWLINE# #UNINDENT# return ( cls ( 'inch' , ** kwargs ) if ( 'M72' in line ) else cls ( 'metric' , ** kwargs ) )