diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-01-10 02:18:07 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-01-10 02:18:07 +0100 |
commit | 20e88fda50832c8a3412586da58f19df2325fef7 (patch) | |
tree | 8d56b328aec4a543ae2fc35bf7b2712a24f24e6b /slixmpp/xmlstream | |
parent | f252be9b6d617ad02f7c9420e62ba6948374c0d1 (diff) | |
download | slixmpp-20e88fda50832c8a3412586da58f19df2325fef7.tar.gz slixmpp-20e88fda50832c8a3412586da58f19df2325fef7.tar.bz2 slixmpp-20e88fda50832c8a3412586da58f19df2325fef7.tar.xz slixmpp-20e88fda50832c8a3412586da58f19df2325fef7.zip |
Fix typos, thanks `codespell`!
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. |