From 20e88fda50832c8a3412586da58f19df2325fef7 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 10 Jan 2018 02:18:07 +0100 Subject: Fix typos, thanks `codespell`! --- slixmpp/plugins/xep_0300/hash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'slixmpp/plugins/xep_0300') 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: -- cgit v1.2.3