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.
2 parents 63eb236 + ebc9e4f commit 85e7aecCopy full SHA for 85e7aec
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