Skip to content

Commit

Permalink
adding __repr__ back to Command object
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Moffat committed Feb 3, 2012
1 parent 581bb7d commit ced1d85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pbs.py
Expand Up @@ -211,10 +211,12 @@ def create(cls, program, raise_exc=True):
def __init__(self, path):
self.path = path


def __str__(self):
if IS_PY3: return self.__unicode__()
else: return unicode(self).encode("utf-8")

def __repr__(self):
return str(self)

def __unicode__(self):
return self.path
Expand Down

0 comments on commit ced1d85

Please sign in to comment.