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:
parent
7458752336
commit
85cea58067
@ -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():
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user