diff options
| author | James Patrick Robinson Jr <jamesprobinsonjr@gmail.com> | 2013-08-28 11:24:56 -0400 |
|---|---|---|
| committer | James Patrick Robinson Jr <jamesprobinsonjr@gmail.com> | 2013-08-28 11:24:56 -0400 |
| commit | d8f0a018ae752bb1d2b7fba2d803ab29ed19a43a (patch) | |
| tree | dc4eb44e4301227fc3b9dc11c3b8403fa0789cf2 /tablib | |
| parent | 7545f3726e49206ad66099315e520ce584796950 (diff) | |
| download | tablib-d8f0a018ae752bb1d2b7fba2d803ab29ed19a43a.tar.gz | |
safe_load is not working for book
yaml.safe_load() was not working for import_book,
changed it to use yaml.load() instead.
Diffstat (limited to 'tablib')
| -rw-r--r-- | tablib/formats/_yaml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tablib/formats/_yaml.py b/tablib/formats/_yaml.py index 91a3baa..e2ccf46 100644 --- a/tablib/formats/_yaml.py +++ b/tablib/formats/_yaml.py @@ -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'] |
