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 be2c50f commit 837581bCopy full SHA for 837581b
Lib/test/test_asyncio/utils.py
@@ -56,7 +56,8 @@ def data_file(*filename):
56
ONLYKEY = data_file('certdata', 'ssl_key.pem')
57
SIGNED_CERTFILE = data_file('certdata', 'keycert3.pem')
58
SIGNING_CA = data_file('certdata', 'pycacert.pem')
59
-PEERCERT = eval(open(data_file('certdata', 'keycert3.pem.reference')).read())
+with open(data_file('certdata', 'keycert3.pem.reference')) as file:
60
+ PEERCERT = literal_eval(file.read())
61
62
def simple_server_sslcontext():
63
server_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
0 commit comments