#NEWLINE# def get_expires( self , record ) : #NEWLINE# #INDENT# 'Returns either EXPIRES_DEFAULT or EXPIRES_NEVER for this record.\n        The default implementation marks errors and criticals as EXPIRES_NEVER.\n        ' #NEWLINE# pn = self . _pynotify #NEWLINE# return ( pn . EXPIRES_NEVER if ( record . level >= ERROR ) else pn . EXPIRES_DEFAULT )