From 4c0be7ddd410b5fb56fafb96e6226f0dcd0b1b2a Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 9 Jul 2018 20:30:46 +0100 Subject: [PATCH] [Common] Fix missing return for de/encode methods --- deluge/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deluge/common.py b/deluge/common.py index 97d2ba441..5d9e34dcf 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -942,13 +942,13 @@ def decode_bytes(byte_str, encoding='utf8'): @deprecated def decode_string(byte_str, encoding='utf8'): """Deprecated: Use decode_bytes""" - decode_bytes(byte_str, encoding) + return decode_bytes(byte_str, encoding) @deprecated def utf8_encoded(str_, encoding='utf8'): """Deprecated: Use encode or decode_bytes if needed""" - decode_bytes(str_, encoding).encode('utf8') + return decode_bytes(str_, encoding).encode('utf8') def utf8_encode_structure(data):