summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcat <cat@eee>2010-02-22 18:09:06 -0500
committercat <cat@eee>2010-02-22 18:09:06 -0500
commita2a9f51029cb96c9e3f7ecf540159ac30490ea81 (patch)
tree8029c553f95e5764766dc0788e947aec6a0344cf
parentbda88d6494fe35907cfc52a157ba46c36ef18ee5 (diff)
downloadcmd2-hg-a2a9f51029cb96c9e3f7ecf540159ac30490ea81.tar.gz
decode seems a healthy change
-rwxr-xr-xcmd2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2.py b/cmd2.py
index 3216ec9..d3513df 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -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