diff options
author | Zuul <zuul@review.opendev.org> | 2022-04-22 16:30:04 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-04-22 16:30:04 +0000 |
commit | 01e1a083d5bec9f4f1b6ff684af670575437f64f (patch) | |
tree | 172139890b6b633719b38dee6eec97982a05d76a | |
parent | 644deedda5fc721bc7490113e86b30145c96f2af (diff) | |
parent | afec310e3fc7ec3f23c04f183bf7ddb5efd6d830 (diff) | |
download | keystone-01e1a083d5bec9f4f1b6ff684af670575437f64f.tar.gz |
Merge "Update TOTP example code for python 3"
-rw-r--r-- | doc/source/admin/auth-totp.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/admin/auth-totp.rst b/doc/source/admin/auth-totp.rst index 3c331be96..c77ca64a0 100644 --- a/doc/source/admin/auth-totp.rst +++ b/doc/source/admin/auth-totp.rst @@ -40,8 +40,8 @@ secret: .. code-block:: python import base64 - message = '1234567890123456' - print base64.b32encode(message).rstrip('=') + message = b'1234567890123456' + print(base64.b32encode(message).rstrip(b'=')) Example output:: |