use bytes

This commit is contained in:
Torma Kristóf 2021-04-25 18:13:14 +02:00
parent 81ea634b3a
commit dc43cc3056
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -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")