workflows: read attachments as binaries (#36515)

This commit is contained in:
Frédéric Péters 2019-11-15 14:27:29 +01:00
parent 3444d4bec8
commit 10d4451122
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class AttachmentEvolutionPart: #pylint: disable=C1001
varname=varname)
def get_file_pointer(self):
return open(self.filename)
return open(self.filename, 'rb')
def __getstate__(self):
odict = self.__dict__.copy()