From f1bdf43aab2e6c6a2641fd52086918e3fa0e5b42 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 25 Sep 2010 15:50:06 -0400 Subject: [PATCH] Book wiper. --- tablib/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tablib/core.py b/tablib/core.py index 9500d20..849e4bc 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -232,7 +232,10 @@ class Databook(object): except AttributeError: return '' - + def wipe(self): + """Wipe book clean.""" + self._datasets = [] + @classmethod def _register_formats(cls): """Adds format properties."""