#NEWLINE# def _parse_comment( self ) : #NEWLINE# #INDENT# 'Extract the keyword value from the card image.' #NEWLINE# if ( ( self . keyword in Card . _commentary_keywords ) or self . _invalid ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# if ( len ( card . _image ) > self . length ) : #NEWLINE# #INDENT# comments = [ ] #NEWLINE# for card in self . _itersubcards ( ) : #NEWLINE# #INDENT# if card . comment : #NEWLINE# #INDENT# comments . append ( card . comment ) #NEWLINE# #UNINDENT# #UNINDENT# comment = ( '/ ' + ' ' . join ( comments ) . rstrip ( ) ) #NEWLINE# m = self . _value_NFSC_RE . match ( comment ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# m = self . _value_NFSC_RE . match ( self . _split ( ) [ 1 ] ) #NEWLINE# #UNINDENT# if ( m is not None ) : #NEWLINE# #INDENT# comment = m . group ( 'comm' ) #NEWLINE# if comment : #NEWLINE# #INDENT# return comment . rstrip ( ) #NEWLINE# #UNINDENT# #UNINDENT# return ''