#NEWLINE# @ comment . setter #NEWLINE# def comment( self , comment ) : #NEWLINE# #INDENT# if self . _invalid : #NEWLINE# #INDENT# raise ValueError ( 'The comment of invalid/unparseable cards cannot set.  Either delete this card from the header or replace it.' ) #NEWLINE# #UNINDENT# if ( comment is None ) : #NEWLINE# #INDENT# comment = '' #NEWLINE# #UNINDENT# if isinstance ( comment , text_type ) : #NEWLINE# #INDENT# m = self . _ascii_text_re . match ( comment ) #NEWLINE# if ( not m ) : #NEWLINE# #INDENT# raise ValueError ( ( 'FITS header comments must contain standard printable ASCII characters; %r contains characters not representable in ASCII or non-printable characters.' % comment ) ) #NEWLINE# #UNINDENT# #UNINDENT# oldcomment = self . _comment #NEWLINE# if ( oldcomment is None ) : #NEWLINE# #INDENT# oldcomment = '' #NEWLINE# #UNINDENT# if ( m != oldcomment ) : #NEWLINE# #INDENT# self . _comment = comment #NEWLINE# self . _modified = True