Skip to content

Commit 788b400

Browse files
committed
Backport the lazy-loading of dependency
1 parent 7fffded commit 788b400

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

oauth2cli/assertion.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import uuid
55
import logging
66

7-
import jwt
8-
97

108
logger = logging.getLogger(__name__)
119

@@ -99,6 +97,7 @@ def create_normal_assertion(
9997
Parameters are defined in https://tools.ietf.org/html/rfc7523#section-3
10098
Key-value pairs in additional_claims will be added into payload as-is.
10199
"""
100+
import jwt # Lazy loading
102101
now = time.time()
103102
payload = {
104103
'aud': audience,

0 commit comments

Comments
 (0)