def _get_success(self, stanza):
payload = stanza.get_payload(RosterPayload)<EOL>if payload is None:<EOL><INDENT>if "<STR_LIT>" in self.server_features and self.roster:<EOL><INDENT>logger.debug("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>logger.warning("<STR_LIT>")<EOL>self._event_queue.put(RosterNotReceivedEvent(self, stanza))<EOL>return<EOL><DEDENT><DEDENT>else:<EOL><INDENT>items = list(payload)<EOL>for item in items:<EOL><INDENT>item.verify_roster_result(True)<EOL><DEDENT>self.roster = Roster(items, payload.version)<EOL><DEDENT>self._event_queue.put(RosterReceivedEvent(self, self.roster))<EOL>
Handle successful response to the roster request.