Skip to content

Commit

Permalink
Treant subclasses that use the same repr style can just inherit now.
Browse files Browse the repository at this point in the history
No more hardcoding of treanttype in repr def
  • Loading branch information
dotsdl committed Mar 31, 2016
1 parent 5a70e30 commit 03fad6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datreant/core/treants.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _write(self):
return self._backend.write()

def __repr__(self):
return "<Treant: '{}'>".format(self.name)
return "<{}: '{}'>".format(self._treanttype, self.name)

def __getstate__(self):
return self.filepath
Expand Down

0 comments on commit 03fad6e

Please sign in to comment.