mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-12-24 18:31:45 +00:00
encodestring -> encodebytes
This commit is contained in:
parent
2089bd5414
commit
460d58b0df
@ -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,
|
||||
})
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user