From 95d40a3ca336a4e1b66c7ed287ec3f2ef92b201c Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 10 Dec 2020 19:20:23 +0100 Subject: docs: update docstrings for sphinx conformity Remove most references to timeout/callback/ifrom/timeout_callbacks args --- slixmpp/xmlstream/tostring.py | 2 +- slixmpp/xmlstream/xmlstream.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'slixmpp/xmlstream') diff --git a/slixmpp/xmlstream/tostring.py b/slixmpp/xmlstream/tostring.py index d6cc85dd..f772ff63 100644 --- a/slixmpp/xmlstream/tostring.py +++ b/slixmpp/xmlstream/tostring.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ slixmpp.xmlstream.tostring - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~~~~~~~~~~ This module converts XML objects into Unicode strings and intelligently includes namespaces only when necessary to diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 066d84df..14020e1c 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -261,7 +261,6 @@ class XMLStream(asyncio.BaseProtocol): connection will be upgraded to SSL/TLS later, using STARTTLS. Only use this value for old servers that have specific port for SSL/TLS - TODO fix the comment :param force_starttls: If True, the connection will be aborted if the server does not initiate a STARTTLS negotiation. If None, the connection will be @@ -278,7 +277,7 @@ class XMLStream(asyncio.BaseProtocol): self.run_filters(), loop=self.loop, ) - + self.disconnect_reason = None self.cancel_connection_attempt() self.connect_loop_wait = 0 -- cgit v1.2.3