From 2968b4f7b61f4ba9bb64de2a5af5e0e54e10b7e4 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 16 Oct 2010 19:00:03 +0200 Subject: [PATCH] fix: class attributes are shared between instances, do not use them here --- weboob/tools/application/formatters/table.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weboob/tools/application/formatters/table.py b/weboob/tools/application/formatters/table.py index c29d89dd..821ed60b 100644 --- a/weboob/tools/application/formatters/table.py +++ b/weboob/tools/application/formatters/table.py @@ -25,13 +25,13 @@ __all__ = ['TableFormatter', 'HTMLTableFormatter'] class TableFormatter(IFormatter): - column_headers = None - queue = [] - header = None HTML = False def __init__(self, display_keys=True, return_only=False): IFormatter.__init__(self, display_keys=display_keys, return_only=return_only) + self.queue = [] + self.header = None + self.column_headers = None def after_format(self, formatted): if self.column_headers is None: