From 4e5803fc3651535f4db2f44d4abaeddc0dab691a Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Thu, 6 Feb 2014 16:37:45 +0000 Subject: [PATCH] forgot to clear readBuffer upon data_rewinding... --- lib/damask/asciitable.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/damask/asciitable.py b/lib/damask/asciitable.py index 3494cfc00..3fd8638f0 100644 --- a/lib/damask/asciitable.py +++ b/lib/damask/asciitable.py @@ -195,7 +195,8 @@ class ASCIItable(): # ------------------------------------------------------------------ def data_rewind(self): - self.__IO__['in'].seek(self.__IO__['dataStart']) + self.__IO__['in'].seek(self.__IO__['dataStart']) # position file to start of data section + self.__IO__['readBuffer'] = [] # delete any non-advancing data reads # ------------------------------------------------------------------ def data_skipLines(self,count):