From cda0204c5c7f0e6a3ab62feab935a60ce9516889 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sun, 11 Apr 2021 20:23:07 +0200 Subject: [PATCH] encodestring -> encodebytes --- account_ebics/models/ebics_userid.py | 2 +- account_ebics/wizards/ebics_xfer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/account_ebics/models/ebics_userid.py b/account_ebics/models/ebics_userid.py index e56022c..d3e8818 100644 --- a/account_ebics/models/ebics_userid.py +++ b/account_ebics/models/ebics_userid.py @@ -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, }) diff --git a/account_ebics/wizards/ebics_xfer.py b/account_ebics/wizards/ebics_xfer.py index 3c23413..d9c1c55 100644 --- a/account_ebics/wizards/ebics_xfer.py +++ b/account_ebics/wizards/ebics_xfer.py @@ -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,