def get_conversation(self, peer_jid, *, current_jid=None):
        """
        Get or create a new one-to-one conversation with a peer.

        :param peer_jid: The JID of the peer to converse with.
        :type peer_jid: :class:`aioxmpp.JID`
        :param current_jid: The current JID to lock the conversation to (see
                            :rfc:`6121`).
        :type current_jid: :class:`aioxmpp.JID`
        :rtype: :class:`Conversation`
        :return: The new or existing conversation with the peer.

        `peer_jid` must be a full or bare JID. See the :class:`Service`
        documentation for details.

        .. versionchanged:: 0.10

            In 0.9, this was a coroutine. Sorry.
        """

        try:
            return self._conversationmap[peer_jid]
        except KeyError:
            pass
        return self._make_conversation(peer_jid, False)
def get_conversation ( self , peer_jid , * , current_jid = None ) : try : return self . _conversationmap [ peer_jid ] except KeyError : pass return self . _make_conversation ( peer_jid , False )
Get or create a new one-to-one conversation with a peer.

        :param peer_jid: The JID of the peer to converse with.
        :type peer_jid: :class:`aioxmpp.JID`
        :param current_jid: The current JID to lock the conversation to (see
                            :rfc:`6121`).
        :type current_jid: :class:`aioxmpp.JID`
        :rtype: :class:`Conversation`
        :return: The new or existing conversation with the peer.

        `peer_jid` must be a full or bare JID. See the :class:`Service`
        documentation for details.

        .. versionchanged:: 0.10

            In 0.9, this was a coroutine. Sorry.