<s> """<STR_LIT>""" <EOL> import sys <EOL> if sys . version >= '<STR_LIT:3>' : <EOL> xrange = range <EOL> class DefaultDeviceHandler ( object ) : <EOL> """<STR_LIT>""" <EOL> _EXEMPT_ERRORS = [ ] <EOL> def __init__ ( self , device_params = None ) : <EOL> self . device_params = device_params <EOL> self . _exempt_errors_exact_match = [ ] <EOL> self . _exempt_errors_startwith_wildcard_match = [ ] <EOL> self . _exempt_errors_endwith_wildcard_match = [ ] <EOL> self . _exempt_errors_full_wildcard_match = [ ] <EOL> for i in xrange ( len ( self . _EXEMPT_ERRORS ) ) : <EOL> e = self . _EXEMPT_ERRORS [ i ] . lower ( ) <EOL> if e . startswith ( "<STR_LIT:*>" ) : <EOL> if e . endswith ( "<STR_LIT:*>" ) : <EOL> self . _exempt_errors_full_wildcard_match . append ( e [ <NUM_LIT:1> : - <NUM_LIT:1> ] ) <EOL> else : <EOL> self . _exempt_errors_startwith_wildcard_match . append ( e [ <NUM_LIT:1> : ] ) <EOL> elif e . endswith ( "<STR_LIT:*>" ) : <EOL> self . _exempt_errors_endwith_wildcard_match . append ( e [ : - <NUM_LIT:1> ] ) <EOL> else : <EOL> self . _exempt_errors_exact_match . append ( e ) <EOL> def add_additional_ssh_connect_params ( self , kwargs ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def get_capabilities ( self ) : <EOL> """<STR_LIT>""" <EOL> return [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ] <EOL> def get_xml_base_namespace_dict ( self ) : <EOL> """<STR_LIT>""" <EOL> return { } <EOL> def get_xml_extra_prefix_kwargs ( self ) : <EOL> """<STR_LIT>""" <EOL> return { } <EOL> def get_ssh_subsystem_names ( self ) : <EOL> """<STR_LIT>""" <EOL> return [ "<STR_LIT>" ] <EOL> def is_rpc_error_exempt ( self , error_text ) : <EOL> """<STR_LIT>""" <EOL> if error_text is not None : <EOL> error_text = error_text . lower ( ) . strip ( ) <EOL> else : <EOL> error_text = '<STR_LIT>' <EOL> for ex in self . _exempt_errors_exact_match : <EOL> if error_text == ex : <EOL> return True <EOL> for ex in self . _exempt_errors_startwith_wildcard_match : <EOL> if error_text . endswith ( ex ) : <EOL> return True <EOL> for ex in self . _exempt_errors_endwith_wildcard_match : <EOL> if error_text . startswith ( ex ) : <EOL> return True <EOL> for ex in self . _exempt_errors_full_wildcard_match : <EOL> if ex in error_text : <EOL> return True <EOL> return False <EOL> def perform_qualify_check ( self ) : <EOL> """<STR_LIT>""" <EOL> return True <EOL> def add_additional_operations ( self ) : <EOL> """<STR_LIT>""" <EOL> return { } <EOL> def handle_raw_dispatch ( self , raw ) : <EOL> return False <EOL> def handle_connection_exceptions ( self , sshsession ) : <EOL> return False <EOL> def transform_reply ( self ) : <EOL> return False </s>
