236743a4e2
* Fix for issue #19776 PyJWT 2.0.0 does not return `bytes` for `encode()` instead returns `str`. So converted the `str` to `bytes` and returned the resulting value * added check for jwt.encode return type * Update __init__.py * Updated with suggested change * Test to check return type of get_token() The `get_token()` must return a `str` but for PyJWT version < 2.0.0 the `jwt.encode()` returns `bytes`. This test is to make sure if token returned by `get_token()` is `str`. * Update test_get_token.py * Update test_get_token.py * Delete test_get_token.py Co-authored-by: Willem Melching <willem.melching@gmail.com> |
||
---|---|---|
.. | ||
api | ||
kalman | ||
tests | ||
transformations | ||
.gitignore | ||
__init__.py | ||
basedir.py | ||
clock.pyx | ||
cython_hacks.py | ||
ffi_wrapper.py | ||
file_helpers.py | ||
filter_simple.py | ||
gpio.py | ||
lazy_property.py | ||
logging_extra.py | ||
numpy_fast.py | ||
numpy_helpers.py | ||
params.py | ||
params_pxd.pxd | ||
params_pyx.pyx | ||
profiler.py | ||
realtime.py | ||
SConscript | ||
spinner.py | ||
stat_live.py | ||
string_helpers.py | ||
text_window.py | ||
timeout.py | ||
window.py | ||
xattr.py |