diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2011-02-18 01:44:59 -0500 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2011-02-18 01:44:59 -0500 |
| commit | 5db8d1c3a661297fb344b4c4f2e4156594a7dcae (patch) | |
| tree | 5448be95a4dd0e644d1fb4b76d099964dd922b15 | |
| parent | 828017f9a747b1a2c7017154ef7ffbabb9bd12f5 (diff) | |
| download | tablib-5db8d1c3a661297fb344b4c4f2e4156594a7dcae.tar.gz | |
that makes more sense
| -rw-r--r-- | tablib/core.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tablib/core.py b/tablib/core.py index a8ad75a..7f2d604 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -86,7 +86,9 @@ class Row(object): elif isinstance(tag, basestring): return (tag in self.tags) else: - return True if len(set(tag) and set(self.tags)) else False + return bool(len(set(tag) & set(self.tags))) + + class Dataset(object): |
