diff options
Diffstat (limited to 'slixmpp/xmlstream')
-rw-r--r-- | slixmpp/xmlstream/matcher/xmlmask.py | 2 | ||||
-rw-r--r-- | slixmpp/xmlstream/resolver.py | 2 | ||||
-rw-r--r-- | slixmpp/xmlstream/xmlstream.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/slixmpp/xmlstream/matcher/xmlmask.py b/slixmpp/xmlstream/matcher/xmlmask.py index 7e26abe2..343bb340 100644 --- a/slixmpp/xmlstream/matcher/xmlmask.py +++ b/slixmpp/xmlstream/matcher/xmlmask.py @@ -75,7 +75,7 @@ class MatchXMLMask(MatcherBase): Defaults to ``"__no_ns__"``. """ if source is None: - # If the element was not found. May happend during recursive calls. + # If the element was not found. May happen during recursive calls. return False # Convert the mask to an XML object if it is a string. diff --git a/slixmpp/xmlstream/resolver.py b/slixmpp/xmlstream/resolver.py index 56cf3872..23f7f039 100644 --- a/slixmpp/xmlstream/resolver.py +++ b/slixmpp/xmlstream/resolver.py @@ -229,7 +229,7 @@ def get_AAAA(host, resolver=None, use_aiodns=True, loop=None): type=socket.SOCK_STREAM) return [rec[4][0] for rec in recs] except (OSError, socket.gaierror): - log.debug("DNS: Error retreiving AAAA address " + \ + log.debug("DNS: Error retrieving AAAA address " + \ "info for %s." % host) return [] diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index f7c0dea0..2ab9a352 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -436,7 +436,7 @@ class XMLStream(asyncio.BaseProtocol): def cancel_connection_attempt(self): """ - Immediatly cancel the current create_connection() Future. + Immediately cancel the current create_connection() Future. This is useful when a client using slixmpp tries to connect on flaky networks, where sometimes a connection just gets lost and it needs to reconnect while the attempt is still ongoing. @@ -449,7 +449,7 @@ class XMLStream(asyncio.BaseProtocol): """Close the XML stream and wait for an acknowldgement from the server for at most `wait` seconds. After the given number of seconds has passed without a response from the serveur, or when the server - successfuly responds with a closure of its own stream, abort() is + successfully responds with a closure of its own stream, abort() is called. If wait is 0.0, this is almost equivalent to calling abort() directly. |