File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 66import time
77import uuid
88from contextlib import contextmanager
9- from cryptography .hazmat .primitives import serialization
109from logging import getLogger
1110from typing import Any , Callable , ContextManager , Generator
1211
1312import pytest
1413import serialization
14+ from cryptography .hazmat .primitives import serialization
1515
1616import snowflake .connector
1717from snowflake .connector .compat import IS_WINDOWS
@@ -196,10 +196,7 @@ def get_db_parameters(connection_name: str = "default") -> dict[str, Any]:
196196
197197def get_private_key (private_key_file : str ) -> bytes :
198198 with open (private_key_file , "rb" ) as key_file :
199- private_key = serialization .load_pem_private_key (
200- key_file .read (),
201- password = None
202- )
199+ private_key = serialization .load_pem_private_key (key_file .read (), password = None )
203200 return private_key .private_bytes (
204201 encoding = serialization .Encoding .DER ,
205202 format = serialization .PrivateFormat .PKCS8 ,
You can’t perform that action at this time.
0 commit comments