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/plugins/xep_0300 | |
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/plugins/xep_0300')
-rw-r--r-- | slixmpp/plugins/xep_0300/hash.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0300/hash.py b/slixmpp/plugins/xep_0300/hash.py index 43dcb5bd..6095671d 100644 --- a/slixmpp/plugins/xep_0300/hash.py +++ b/slixmpp/plugins/xep_0300/hash.py @@ -25,7 +25,7 @@ class XEP_0300(BasePlugin): stanza = stanza default_config = { 'block_size': 1024 * 1024, # One MiB - 'prefered': 'sha-256', + 'preferded': 'sha-256', 'enable_sha-1': False, 'enable_sha-256': True, 'enable_sha-512': True, @@ -73,7 +73,7 @@ class XEP_0300(BasePlugin): def compute_hash(self, filename, function=None): if function is None: - function = self.prefered + function = self.preferred h = self._hashlib_function[function]() with open(filename, 'rb') as f: while True: |