File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1111from .jwk .rsa import load_x509_cert
1212from .jwk .rsa import RSAKey
1313from .exception import HeaderError
14- from .utils import b64d
14+ from .utils import b64d , as_bytes
1515
1616logger = logging .getLogger (__name__ )
1717
@@ -244,7 +244,7 @@ def _pick_alg(self, keys):
244244 return alg
245245
246246 def _decode (self , payload ):
247- _msg = b64d (bytes (payload ))
247+ _msg = b64d (as_bytes (payload ))
248248 if "cty" in self :
249249 if self ["cty" ] == "JWT" :
250250 _msg = json .loads (_msg )
Original file line number Diff line number Diff line change 11[tox]
2- envlist = py{35, 36,37},quality
2+ envlist = py{36,37},quality
33
44[testenv]
55passenv = CI TRAVIS TRAVIS_*
@@ -10,6 +10,7 @@ extras = testing
1010deps =
1111 codecov
1212 pytest-cov
13+ pytest-httpserver
1314
1415[pep8]
1516max-line-length =100
You can’t perform that action at this time.
0 commit comments