summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Goirand <zigo@debian.org>2020-10-16 13:08:53 +0200
committerThomas Goirand <zigo@debian.org>2020-10-16 13:09:42 +0200
commit2b6f6ac284e4e749a8f6cf627cdc00c54a05f422 (patch)
tree828276c81a5962bef46c2bd0c15e917ff08987e3
parent17958681f6b2f076b54951680843b2d2eac59494 (diff)
downloadpython-heatclient-2b6f6ac284e4e749a8f6cf627cdc00c54a05f422.tar.gz
Python 3.9: base64.encodestring is removed
We should use base64.encodebytes instead, which is avaiable since Python 3.2. Change-Id: Ic945aff08d00bf2e602964cb1e25ea045e645b17
-rw-r--r--heatclient/common/utils.py2
1 files changed, 1 insertions, 1 deletions
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