We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63eb236 commit ebc9e4fCopy full SHA for ebc9e4f
src/cryptojwt/key_bundle.py
@@ -290,7 +290,8 @@ def do_local_jwk(self, filename):
290
291
:param filename: Name of the file from which the JWKS should be loaded
292
"""
293
- _info = json.loads(open(filename).read())
+ with open(filename) as input_file:
294
+ _info = json.load(input_file)
295
if 'keys' in _info:
296
self.do_keys(_info["keys"])
297
else:
0 commit comments