diff options
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: |