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.
1 parent d2bc8ac commit 9a1e7fbCopy full SHA for 9a1e7fb
examples/rest_api/list_volumes.py
@@ -87,7 +87,7 @@ def parse_args() -> argparse.Namespace:
87
format="[%(asctime)s] [%(levelname)5s] [%(module)s:%(lineno)s] %(message)s",
88
)
89
ARGS = parse_args()
90
- base64string = base64.encodestring(
+ base64string = base64.encodebytes(
91
('%s:%s' %
92
(ARGS.api_user, ARGS.api_pass)).encode()).decode().replace('\n', '')
93
0 commit comments