We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aea98ad commit 65c8e07Copy full SHA for 65c8e07
1 file changed
openleadr/messaging.py
@@ -70,8 +70,6 @@ def load_private_key(key_data):
70
Load the key based on key data. .pem and .der keys can be loaded.
71
Returns a private key object.
72
"""
73
- with open(key_data, "rb") as f:
74
- key_data = f.read()
75
try:
76
key = serialization.load_pem_private_key(key_data, password=None)
77
except ValueError:
0 commit comments