From 7bf0b6edbffd45118c8a7f4f638bdd7f784a2598 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 3 Mar 2020 11:15:00 +0000 Subject: rewrite command output truncation --- src/core_modules/commands/outs.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core_modules/commands/outs.py') diff --git a/src/core_modules/commands/outs.py b/src/core_modules/commands/outs.py index e82ceefd..c6b489ae 100644 --- a/src/core_modules/commands/outs.py +++ b/src/core_modules/commands/outs.py @@ -6,6 +6,13 @@ class StdOut(object): self.prefix = prefix self._lines = [] self._assured = False + self._overflowed = False + + def copy_from(self, other): + self.prefix = other.prefix + self._lines = other._lines + self._assured = other._assured + self._overflowed = other._overflowed def assure(self): self._assured = True -- cgit v1.3.1-10-gc9f91