safe_load is not working for book

yaml.safe_load() was not working for import_book,
changed it to use yaml.load() instead.
This commit is contained in:
James Patrick Robinson Jr 2013-08-28 11:24:56 -04:00
parent 7545f3726e
commit d8f0a018ae
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ def import_book(dbook, in_stream):
dbook.wipe()
for sheet in yaml.safe_load(in_stream):
for sheet in yaml.load(in_stream):
data = tablib.Dataset()
data.title = sheet['title']
data.dict = sheet['data']