diff --git a/pbs.py b/pbs.py index 9af37820..8c4c38e5 100644 --- a/pbs.py +++ b/pbs.py @@ -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