We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a328d17 + 116a085 commit 6408ddcCopy full SHA for 6408ddc
examples/rest_api/utils.py
@@ -79,7 +79,7 @@ def setup_logging() -> None:
79
def setup_connection(api_user: str, api_pass: str):
80
"""Configure the default connection for the application"""
81
82
- base64string = base64.encodestring(
+ base64string = base64.encodebytes(
83
('%s:%s' %
84
(api_user, api_pass)).encode()).decode().replace('\n', '')
85
0 commit comments