Python 3.9: base64.encodestring is removed
We should use base64.encodebytes instead, which is avaiable since
Python 3.2.
@@ -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
