From 9f7fec23793b25c7aeffcee4186d6009dc816cca Mon Sep 17 00:00:00 2001 From: Josh Ourisman Date: Fri, 1 Oct 2010 15:27:28 -0400 Subject: [PATCH] changing syntax of checking for row and col values in append(); slightly more robust this way --- tablib/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tablib/core.py b/tablib/core.py index ddb9769..8f74975 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -173,10 +173,10 @@ class Dataset(object): def append(self, row=None, col=None): """Adds a row to the end of Dataset""" - if row: + if row is not None: self._validate(row) self._data.append(tuple(row)) - elif col: + elif col is not None: self._validate(col=col) if self.headers: