diff --git a/pytools/__init__.py b/pytools/__init__.py index 1afa12b13256d61a042ff4d9d0caf4de787eab85..7b4349efa3f9492e1f8e839af65162abac1ef44c 100644 --- a/pytools/__init__.py +++ b/pytools/__init__.py @@ -1499,9 +1499,12 @@ class Table: .. automethod:: github_markdown """ - def __init__(self, alignments=['l', 'r']): + def __init__(self, alignments=None): self.rows = [] - self.alignments = alignments + if alignments is not None: + self.alignments = alignments + else: + self.alignments = ['l'] def add_row(self, row): self.rows.append([str(i) for i in row])