<s> "<STR_LIT>" <EOL> from . default import DefaultErrorHandler <EOL> import re <EOL> class JunosErrorHandler ( DefaultErrorHandler ) : <EOL> _ERROR_MATCHES = [ <EOL> re . compile ( r'<STR_LIT>' , re . I ) , <EOL> re . compile ( r'<STR_LIT>' , re . I ) , <EOL> re . compile ( '<STR_LIT>' , re . I ) <EOL> ] <EOL> def __init__ ( self , personality ) : <EOL> super ( JunosErrorHandler , self ) . __init__ ( personality ) <EOL> def has_error ( self , output ) : <EOL> if any ( m . search ( output ) for m in self . _ERROR_MATCHES ) : <EOL> return True <EOL> return False </s>
