mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-23 20:52:04 +00:00
encodestring -> encodebytes
This commit is contained in:
parent
00ec1b1e54
commit
bd5c3b2e8f
@ -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