From 2b6f6ac284e4e749a8f6cf627cdc00c54a05f422 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Fri, 16 Oct 2020 13:08:53 +0200 Subject: Python 3.9: base64.encodestring is removed We should use base64.encodebytes instead, which is avaiable since Python 3.2. Change-Id: Ic945aff08d00bf2e602964cb1e25ea045e645b17 --- heatclient/common/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'heatclient') diff --git a/heatclient/common/utils.py b/heatclient/common/utils.py index cb2cb88..3d82f98 100644 --- a/heatclient/common/utils.py +++ b/heatclient/common/utils.py @@ -420,7 +420,7 @@ def read_url_content(url): try: content.decode('utf-8') except ValueError: - content = base64.encodestring(content) + content = base64.encodebytes(content) return content -- cgit v1.2.1