From dc43cc30564d84cf00717bb9408d268195370c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 25 Apr 2021 18:13:14 +0200 Subject: [PATCH] use bytes --- server/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/executor.py b/server/executor.py index 9bbf60f..b28379d 100644 --- a/server/executor.py +++ b/server/executor.py @@ -64,7 +64,7 @@ class Executor: strdirectory = strdirectory[:-1] return strdirectory - def putFileInCurrentDirectory(self, filename: str, content) -> str: + def putFileInCurrentDirectory(self, filename: str, content: bytes) -> str: filename = self.sanitizeFile(filename) currenctfile = os.path.join(self.currentDirectory, filename) f = open(currenctfile, "wb")