diff options
| author | James Douglass <jamesdouglassusa@gmail.com> | 2014-09-05 14:56:33 -0700 |
|---|---|---|
| committer | James Douglass <jamesdouglassusa@gmail.com> | 2014-09-05 14:56:33 -0700 |
| commit | 82ae3ca5073210a2ca280df97729ee78c595a65d (patch) | |
| tree | 93a7e2be8d70e124497ab162cbe7ec75432e9078 | |
| parent | 48e576954d4570edc6fca07155d68d9d7a4a4c28 (diff) | |
| download | tablib-82ae3ca5073210a2ca280df97729ee78c595a65d.tar.gz | |
Cleaning up DBF documentation
Fixing indentation issues (off by one space), which caused problems
with the sphinx rendering of the DBF docstring and otherwise cleaning
up the sphinx docstring.
| -rw-r--r-- | tablib/core.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tablib/core.py b/tablib/core.py index 02c9085..b275d8a 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -563,7 +563,8 @@ class Dataset(object): def dbf(): """A dBASE representation of the :class:`Dataset` object. - A dataset object can also be imported by setting the :class:`Dataset.dbf` attribute::: + A dataset object can also be imported by setting the + :class:`Dataset.dbf` attribute. :: # To import data from an existing DBF file: data = tablib.Dataset() @@ -571,11 +572,11 @@ class Dataset(object): # to import data from an ASCII-encoded bytestring: data = tablib.Dataset() - data.dbf = <bytestring of tabular data> + data.dbf = '<bytestring of tabular data>' - .. admonition:: Binary Warning + .. admonition:: Binary Warning - :class:`Dataset.dbf` contains binary data, so make sure to write in binary mode:: + :class:`Dataset.dbf` contains binary data, so make sure to write in binary mode:: with open('output.dbf', 'wb') as f: f.write(data.dbf) |
