Skip to content

Commit

Permalink
use safe load
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethreitz committed Jun 13, 2017
1 parent 05bd0d1 commit 69abfc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tablib/formats/_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def import_book(dbook, in_stream):

dbook.wipe()

for sheet in yaml.load(in_stream):
for sheet in yaml.safe_load(in_stream):
data = tablib.Dataset()
data.title = sheet['title']
data.dict = sheet['data']
Expand Down

0 comments on commit 69abfc3

Please sign in to comment.