minor fix

This commit is contained in:
Miroslav Stampar 2011-12-31 01:03:54 +00:00
parent 94d43a4135
commit 40991a5d52

View File

@ -66,7 +66,7 @@ class Dump:
def flush(self): def flush(self):
if self.__outputBP and self.__outputFP and self.__outputBP.tell() > 0: if self.__outputBP and self.__outputFP and self.__outputBP.tell() > 0:
_ = self.__outputBP.getvalue() _ = self.__outputBP.getvalue()
self.__outputBP.reset() self.__outputBP.truncate(0)
self.__outputFP.write(_) self.__outputFP.write(_)
def __formatString(self, inpStr): def __formatString(self, inpStr):