From 00e9ae0120213f5f3cb8c432f8301b391b3dbfd8 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 4 Nov 2010 12:05:39 -0400 Subject: [PATCH] Minor bug was causing reference shadowing. --- tablib/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tablib/core.py b/tablib/core.py index 2fcea5c..c71dfb7 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -507,7 +507,7 @@ class Dataset(object): that do not contain the given :ref:`tags `. """ _dset = copy(self) - _dset._data[:] = [row for row in self._data if row.has_tag(tag)] + _dset._data = [row for row in _dset._data if row.has_tag(tag)] return _dset