original_docstring:  checks if the expected password prompt exists in b_output 
docstring: checks if the expected password prompt exists in b_output
docstring_tokens: checks if the expected password prompt exists in b_output
code: def check_password_prompt(self, b_output):
          ''' checks if the expected password prompt exists in b_output '''
  
          # FIXME: more accurate would be: 'doas (%s@' % remote_user
          # however become plugins don't have that information currently
          b_prompts = [to_bytes(p) for p in self.get_option('prompt_l10n')] or [br'doas \(', br'Password:']
          b_prompt = b"|".join(b_prompts)
  
          return bool(re.match(b_prompt, b_output))
code_tokens: def check_password_prompt ( self , b_output ) : b_prompts = [ to_bytes ( p ) for p in self . get_option ( 'prompt_l10n' ) ] or [ br'doas \(' , br'Password:' ] b_prompt = b"|" . join ( b_prompts ) return bool ( re . match ( b_prompt , b_output ) )
short_docstring: checks if the expected password prompt exists in b_output
short_docstring_tokens: checks if the expected password prompt exists in b_output
comment: ''' checks if the expected password prompt exists in b_output '''$SEP$# FIXME: more accurate would be: 'doas (%s@' % remote_user$SEP$# however become plugins don't have that information currently