Skip to content

Commit 3a6e55f

Browse files
committed
bunch: use yaml.safe_load to avoid warnings
1 parent 027c593 commit 3a6e55f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

easypy/bunch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def from_json(cls, d):
8787
@classmethod
8888
def from_yaml(cls, d):
8989
import yaml
90-
return cls.from_dict(yaml.load(d))
90+
return cls.from_dict(yaml.safe_load(d))
9191

9292
@classmethod
9393
def from_xml(cls, d):

0 commit comments

Comments
 (0)