remove redundant utf-8;
This commit is contained in:
parent
19bb2c01fb
commit
3ea437c670
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user