From 6b8bebad49dc0762b78cfd2d2db49cfb3f197cb8 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Thu, 23 Feb 2012 13:54:38 +0000 Subject: [PATCH] removed unused headerLen property. added info_clear() method --- lib/damask/asciitable.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/damask/asciitable.py b/lib/damask/asciitable.py index a785d740f..7c758d1da 100644 --- a/lib/damask/asciitable.py +++ b/lib/damask/asciitable.py @@ -76,11 +76,9 @@ class ASCIItable(): if m: self.info = [self.__IO__['in'].readline().strip() for i in xrange(1,int(m.group(1)))] self.labels = self.__IO__['in'].readline().split() - self.headerLen = int(m.group(1)) + 1 else: self.info = [] self.labels = firstline.split() - self.headerLen = 1 self.__IO__['validReadSize'] = len(self.labels) try: self.__IO__['dataStart'] = self.__IO__['in'].tell() @@ -107,6 +105,10 @@ class ASCIItable(): for item in what: self.info_append(item) else: self.info += [str(what)] +# ------------------------------------------------------------------ + def info_clear(self): + self.info = [] + # ------------------------------------------------------------------ def data_rewind(self): self.__IO__['in'].seek(self.__IO__['dataStart'])