encodestring -> encodebytes

This commit is contained in:
Luc De Meyer 2021-04-11 20:23:07 +02:00
parent 2089bd5414
commit 460d58b0df
2 changed files with 2 additions and 2 deletions

View File

@ -350,7 +350,7 @@ class EbicsUserID(models.Model):
with open(full_tmp_fn, 'rb') as f:
letter = f.read()
self.write({
'ebics_ini_letter': base64.encodestring(letter),
'ebics_ini_letter': base64.encodebytes(letter),
'ebics_ini_letter_fn': fn,
})

View File

@ -488,7 +488,7 @@ class EbicsXfer(models.TransientModel):
"\nPlease check this file and rename in case there is "
"no risk on duplicate transactions.")
% fn)
data = base64.encodestring(data)
data = base64.encodebytes(data)
ef_vals = {
'name': fn,
'data': data,