fix: class attributes are shared between instances, do not use them here
This commit is contained in:
parent
3e643ef7ab
commit
2968b4f7b6
1 changed files with 3 additions and 3 deletions
|
|
@ -25,13 +25,13 @@ __all__ = ['TableFormatter', 'HTMLTableFormatter']
|
||||||
|
|
||||||
|
|
||||||
class TableFormatter(IFormatter):
|
class TableFormatter(IFormatter):
|
||||||
column_headers = None
|
|
||||||
queue = []
|
|
||||||
header = None
|
|
||||||
HTML = False
|
HTML = False
|
||||||
|
|
||||||
def __init__(self, display_keys=True, return_only=False):
|
def __init__(self, display_keys=True, return_only=False):
|
||||||
IFormatter.__init__(self, display_keys=display_keys, return_only=return_only)
|
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):
|
def after_format(self, formatted):
|
||||||
if self.column_headers is None:
|
if self.column_headers is None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue