Skip to content

Commit

Permalink
a decode where they should've been an encode
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Moffat committed Sep 16, 2012
1 parent fb3e95e commit 3a8ef0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sh.py
Expand Up @@ -320,7 +320,7 @@ def __exit__(self, typ, value, traceback):

def __str__(self):
if IS_PY3: return self.__unicode__()
else: return unicode(self).decode(self.call_args["encoding"])
else: return unicode(self).encode(self.call_args["encoding"])

def __unicode__(self):
if self.process:
Expand Down

0 comments on commit 3a8ef0b

Please sign in to comment.