diff options
author | cat <cat@eee> | 2010-02-22 18:09:06 -0500 |
---|---|---|
committer | cat <cat@eee> | 2010-02-22 18:09:06 -0500 |
commit | a2a9f51029cb96c9e3f7ecf540159ac30490ea81 (patch) | |
tree | 8029c553f95e5764766dc0788e947aec6a0344cf /cmd2.py | |
parent | bda88d6494fe35907cfc52a157ba46c36ef18ee5 (diff) | |
download | cmd2-hg-a2a9f51029cb96c9e3f7ecf540159ac30490ea81.tar.gz |
decode seems a healthy change
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1436,7 +1436,7 @@ class OutputTrap(Borg): sys.stdout = self.trap def read(self): self.trap.seek(0) - result = self.trap.read() + result = self.trap.read().decode() # Py3 sends stdout trap as bytes, not strings self.trap.truncate(0) try: return result.strip('\x00') #TODO: understand this |