From c6e240fa52373bd70304341eeb9721881eb61120 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 4 Nov 2010 04:22:37 -0400 Subject: [PATCH] Cleanups. --- tablib/core.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tablib/core.py b/tablib/core.py index 9f5ffc4..df5aade 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -505,13 +505,12 @@ class Dataset(object): self._data = [Row([row]) for row in col] def filter(self, tag): - """Returns a new instance of the :class:`Dataset` containing only rows - with given tags. + """Returns a new instance of the :class:`Dataset`, excluding any rows + that do not contain the given tags. """ _dset = copy(self) _dset._data[:] = [row for row in self._data if row.has_tag(tag)] - - + return _dset def wipe(self):