changing syntax of checking for row and col values in append(); slightly more robust this way

This commit is contained in:
Josh Ourisman
2010-10-01 15:27:28 -04:00
parent 762ac39e27
commit 9f7fec2379
+2 -2
View File
@@ -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: