def login_transplant(self, other):
if not other.logged_in:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>cookie = other.session<EOL>if not cookie:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self.conn.cookies.update({"<STR_LIT>": cookie})<EOL>self.session = cookie<EOL>self.logged_in = True<EOL>return True<EOL>
Attempts to carry over the login state from another room