def _login(self, session, get_request=False):
req = session.post(self._login_url, data=self._logindata)<EOL>if _LOGIN_ERROR_STRING in req.text orreq.status_code == <NUM_LIT> orreq.url == _LOGIN_URL:<EOL><INDENT>err_mess = "<STR_LIT>"<EOL>if _LOGIN_LOCKED_MESS in req.text:<EOL><INDENT>err_mess += "<STR_LIT>" + _LOGIN_LOCKED_MESS_ENG<EOL>self._suspended = True<EOL>raise self.AccountSuspendedError(err_mess)<EOL><DEDENT>raise self.LoginError(err_mess)<EOL><DEDENT>self._suspended = False  <EOL>return (session, req) if get_request else session<EOL>
Return a session for yesss.at.