parameters: (self, user, password)
return_statement: return typ, dat
docstring: Identify client using plaintext password.
  
          (typ, [data]) = <instance>.login(user, password)
  
          NB: 'password' will be quoted.
docstring_summary: Identify client using plaintext password.
docstring_tokens: Identify client using plaintext password .
function: def login(self, user, password):
          """Identify client using plaintext password.
  
          (typ, [data]) = <instance>.login(user, password)
  
          NB: 'password' will be quoted.
          """
          typ, dat = self._simple_command('LOGIN', user, self._quote(password))
          if typ != 'OK':
              raise self.error(dat[-1])
          self.state = 'AUTH'
          return typ, dat
function_tokens: def login ( self , user , password ) : typ , dat = self . _simple_command ( 'LOGIN' , user , self . _quote ( password ) ) if typ != 'OK' : raise self . error ( dat [ - 1 ] ) self . state = 'AUTH' return typ , dat