Skip to content

Commit 69abfc3

Browse files
committed
use safe load
1 parent 05bd0d1 commit 69abfc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tablib/formats/_yaml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def import_book(dbook, in_stream):
3333

3434
dbook.wipe()
3535

36-
for sheet in yaml.load(in_stream):
36+
for sheet in yaml.safe_load(in_stream):
3737
data = tablib.Dataset()
3838
data.title = sheet['title']
3939
data.dict = sheet['data']

0 commit comments

Comments
 (0)