Skip to content

Commit 92d8c38

Browse files
authored
Update yaml.py (#664)
switch to yaml.safe_load()
1 parent 390354c commit 92d8c38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/canmatrix/formats/yaml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def dump(db, f, **options): # type: (canmatrix.CanMatrix, typing.IO, **typing.A
7474

7575
def load(f, **options): # type: (typing.IO, **typing.Any) -> canmatrix.CanMatrix
7676
__init_yaml()
77-
db = yaml.load(f)
77+
db = yaml.safe_load(f)
7878
return db
7979

8080

0 commit comments

Comments
 (0)