encodestring -> encodebytes

This commit is contained in:
Luc De Meyer 2021-04-11 20:23:07 +02:00
parent 24d0ea0da8
commit cda0204c5c
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: with open(full_tmp_fn, 'rb') as f:
letter = f.read() letter = f.read()
self.write({ self.write({
'ebics_ini_letter': base64.encodestring(letter), 'ebics_ini_letter': base64.encodebytes(letter),
'ebics_ini_letter_fn': fn, '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 " "\nPlease check this file and rename in case there is "
"no risk on duplicate transactions.") "no risk on duplicate transactions.")
% fn) % fn)
data = base64.encodestring(data) data = base64.encodebytes(data)
ef_vals = { ef_vals = {
'name': fn, 'name': fn,
'data': data, 'data': data,