[Common] Fix missing return for de/encode methods

This commit is contained in:
Calum Lind 2018-07-09 20:30:46 +01:00
parent 38961d4253
commit 4c0be7ddd4
1 changed files with 2 additions and 2 deletions

View File

@ -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):