From 1146ec234164f08885c9550b008dcafd511cbd22 Mon Sep 17 00:00:00 2001 From: Guillermo Pascual Date: Tue, 8 Apr 2014 10:13:04 +0200 Subject: [PATCH] Update docs --- docs/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 482cc6d..7bf1a41 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -26,8 +26,8 @@ Tablib is an :ref:`MIT Licensed ` format-agnostic tabular dataset library, :: - >>> data = tablib.Dataset(headers=['First Name', 'Last Name', 'Age']) - >>> data.extend([('Kenneth', 'Reitz', 23), ('Bessie', 'Monke', 22)]) + >>> data = tablib.Dataset(*[('Kenneth', 'Reitz', 23), ('Bessie', 'Monke', 22)], + headers=['First Name', 'Last Name', 'Age']) >>> data.json [{"Last Name": "Reitz", "First Name": "Kenneth", "Age": 22}, {"Last Name": "Monke", "First Name": "Bessie", "Age": 21}]