

def _SetTable(self, table):
    'Sets table, with column headers and separators.'
    if (not isinstance(table, TextTable)):
        raise TypeError('Not an instance of TextTable.')
    self.Reset()
    self._table = copy.deepcopy(table._table)
    for row in self:
        row.table = self

dataset/ETHPy150Open google/textfsm/texttable.py TextTable._SetTable/original