remove redundant utf-8;

This commit is contained in:
Marco Zeisler 2020-11-30 18:52:04 +01:00
parent 19bb2c01fb
commit 3ea437c670

View File

@ -6,7 +6,7 @@ class WrapperService:
@staticmethod @staticmethod
def wrap_file(file_bytes: bytes) -> str: def wrap_file(file_bytes: bytes) -> str:
file_encoded_b64 = base64.b64encode(file_bytes) file_encoded_b64 = base64.b64encode(file_bytes)
return file_encoded_b64.decode('utf-8') return file_encoded_b64.decode()
@staticmethod @staticmethod
def unwrap_file(file_str: str) -> bytes: def unwrap_file(file_str: str) -> bytes: