summaryrefslogtreecommitdiff
path: root/cmd2/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/utils.py')
-rw-r--r--cmd2/utils.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd2/utils.py b/cmd2/utils.py
index 292f88dc..3a3e7da9 100644
--- a/cmd2/utils.py
+++ b/cmd2/utils.py
@@ -477,11 +477,7 @@ class StdSim:
"""
if not isinstance(s, str):
raise TypeError('write() argument must be str, not {}'.format(type(s)))
-
- if not self.pause_storage:
- self.buffer.byte_buf += s.encode(encoding=self.encoding, errors=self.errors)
- if self.echo:
- self.inner_stream.write(s)
+ self.buffer.write(s.encode(self.encoding, errors=self.errors))
def getvalue(self) -> str:
"""Get the internal contents as a str"""