Use decodestring in Python 2 and decodebytes in Python 3. Reference : https://github.com/python/cpython/pull/18022 https://github.com/CaliOpen/Caliopen/blob/51c88939e9e9cc2cbcc5d2eaad08c909d4e1882d/src/backend/interfaces/REST/py.server/caliopen_api/user/authentication.py#L48 https://github.com/CaliOpen/Caliopen/blob/51c88939e9e9cc2cbcc5d2eaad08c909d4e1882d/src/backend/interfaces/REST/py.server/caliopen_api/user/authentication.py#L118
Use decodestring in Python 2 and decodebytes in Python 3. Reference : python/cpython#18022
Caliopen/src/backend/interfaces/REST/py.server/caliopen_api/user/authentication.py
Line 48 in 51c8893
Caliopen/src/backend/interfaces/REST/py.server/caliopen_api/user/authentication.py
Line 118 in 51c8893