build: Change yaml.load to safe_load

It’s safer.  PyYAML also changed the load method so it requires a loader parameter.
This commit is contained in:
Gergely Polonkai 2023-10-30 13:02:24 +01:00
parent 7458752336
commit 85cea58067
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ from nacl.signing import SigningKey
from secret_handshake import SHSClient
with open(os.path.expanduser('~/.ssb/secret')) as f:
config = yaml.load(f)
config = yaml.safe_load(f)
async def main():

View File

@ -8,7 +8,7 @@ from nacl.signing import SigningKey
from secret_handshake import SHSServer
with open(os.path.expanduser('~/.ssb/secret')) as f:
config = yaml.load(f)
config = yaml.safe_load(f)
async def _on_connect(conn):