diff options
| author | 2020-03-03 11:15:00 +0000 | |
|---|---|---|
| committer | 2020-03-03 11:16:39 +0000 | |
| commit | 7bf0b6edbffd45118c8a7f4f638bdd7f784a2598 (patch) | |
| tree | f7fdd54439c3f673e51db6b447168a2837040a99 /src/core_modules/commands/outs.py | |
| parent | refactor perform.py (diff) | |
| signature | ||
rewrite command output truncation
Diffstat (limited to 'src/core_modules/commands/outs.py')
| -rw-r--r-- | src/core_modules/commands/outs.py | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
