[Common] Fix missing return for de/encode methods
This commit is contained in:
parent
38961d4253
commit
4c0be7ddd4
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue