Skip to content

Commit 116a085

Browse files
authored
base64.encodestring to base64.encodebytes
base64.encodestring() deprecated since Python 3.1.
1 parent d272414 commit 116a085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/rest_api/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def setup_logging() -> None:
7979
def setup_connection(api_user: str, api_pass: str):
8080
"""Configure the default connection for the application"""
8181

82-
base64string = base64.encodestring(
82+
base64string = base64.encodebytes(
8383
('%s:%s' %
8484
(api_user, api_pass)).encode()).decode().replace('\n', '')
8585

0 commit comments

Comments
 (0)