diff --git a/lib/core/dump.py b/lib/core/dump.py index d917453d7..d2799f198 100644 --- a/lib/core/dump.py +++ b/lib/core/dump.py @@ -66,7 +66,7 @@ class Dump: def flush(self): if self.__outputBP and self.__outputFP and self.__outputBP.tell() > 0: _ = self.__outputBP.getvalue() - self.__outputBP.reset() + self.__outputBP.truncate(0) self.__outputFP.write(_) def __formatString(self, inpStr):