Skip to content

Commit

Permalink
Update _magics.py (#2747)
Browse files Browse the repository at this point in the history
switched yaml.loader to use SafeLoader
  • Loading branch information
johnmarkpittman committed Dec 11, 2022
1 parent 541bc58 commit e05fb91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions altair/_magics.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def namevar(s):
"Install pyyaml to parse spec as yaml"
)
else:
spec = yaml.load(cell, Loader=yaml.FullLoader)
spec = yaml.load(cell, Loader=yaml.SafeLoader)

if data:
spec["data"] = []
Expand Down Expand Up @@ -176,7 +176,7 @@ def vegalite(line, cell):
"Install pyyaml to parse spec as yaml"
)
else:
spec = yaml.load(cell, Loader=yaml.FullLoader)
spec = yaml.load(cell, Loader=yaml.SafeLoader)

if args.data is not None:
data = _get_variable(args.data)
Expand Down

0 comments on commit e05fb91

Please sign in to comment.