diff options
| author | Kenneth Reitz <me@kennethreitz.org> | 2017-06-13 12:29:55 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.org> | 2017-06-13 12:29:55 -0400 |
| commit | 69abfc3ada5d754cb152119c0b4777043657cb6e (patch) | |
| tree | 1a3db24804b94c8e4b7285ec28e8ae0e9766e14e /tablib | |
| parent | 05bd0d1d42e2a1aeb3b835a4ae96de7364735192 (diff) | |
| download | tablib-69abfc3ada5d754cb152119c0b4777043657cb6e.tar.gz | |
use safe load
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 5aecb42..3d17baf 100644 --- a/tablib/formats/_yaml.py +++ b/tablib/formats/_yaml.py @@ -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'] |
