daemon: updated utils.cmd to use returncode instead of wait(), removed redundant default encoding value for calls to decode/encode
This commit is contained in:
parent
94f070e0ff
commit
81230edac3
5 changed files with 8 additions and 8 deletions
|
@ -1179,7 +1179,7 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
|
|||
logger.debug("open xml: %s", request)
|
||||
session = self.coreemu.create_session()
|
||||
temp = tempfile.NamedTemporaryFile(delete=False)
|
||||
temp.write(request.data.encode("utf-8"))
|
||||
temp.write(request.data.encode())
|
||||
temp.close()
|
||||
temp_path = Path(temp.name)
|
||||
file_path = Path(request.file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue