diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2018-07-28 17:19:33 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2018-09-14 16:06:06 +0100 |
commit | ad20ec62f2373e41612f74c93dcd1d5f59cb7a95 (patch) | |
tree | 3bf20d0ea35119940ce1c313739849ee36a55966 /deluge/common.py | |
parent | af2bed8a0f27adaa4d8ee3fcd792d9468af4920e (diff) | |
download | deluge-ad20ec62f2373e41612f74c93dcd1d5f59cb7a95.tar.gz deluge-ad20ec62f2373e41612f74c93dcd1d5f59cb7a95.tar.bz2 deluge-ad20ec62f2373e41612f74c93dcd1d5f59cb7a95.zip |
[Py2to3] Fix TorrentInfo metainfo dict key lookups
Diffstat (limited to 'deluge/common.py')
-rw-r--r-- | deluge/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/common.py b/deluge/common.py index 04588cf24..f2cef2f45 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -930,7 +930,7 @@ def decode_bytes(byte_str, encoding='utf8'): lambda: (encoding, 'ignore'), ] - if encoding is not 'utf8': + if encoding.lower() not in ['utf8', 'utf-8']: encodings.insert(0, lambda: (encoding, 'strict')) for l in encodings: |