summaryrefslogtreecommitdiff
path: root/jwt
diff options
context:
space:
mode:
authorFederico Caselli <CaselIT@users.noreply.github.com>2020-12-12 16:59:57 +0100
committerGitHub <noreply@github.com>2020-12-12 21:59:57 +0600
commit5fc33b212d2e5083abe4ff66ced037d182f9a6aa (patch)
tree47964c3aa10892beb4cea46b7792c3a2a87bbad6 /jwt
parent2243c0889a1cd21761d778f648f41c43994651c4 (diff)
downloadpyjwt-5fc33b212d2e5083abe4ff66ced037d182f9a6aa.tar.gz
Avoid loading token twice in pyjwt.decode (#506)
Removes a call to _load that was unused.
Diffstat (limited to 'jwt')
-rw-r--r--jwt/api_jwt.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/jwt/api_jwt.py b/jwt/api_jwt.py
index e08d65c..d7078d6 100644
--- a/jwt/api_jwt.py
+++ b/jwt/api_jwt.py
@@ -80,8 +80,6 @@ class PyJWT(PyJWS):
**kwargs
): # type: (...) -> Dict[str, Any]
- payload, _, _, _ = self._load(jwt)
-
if options is None:
options = {"verify_signature": True}
else: