add the document stem to the __repr__

This commit is contained in:
Martin A. Brown 2016-02-26 23:18:50 -08:00
parent 066f319156
commit eac92b5354
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ class SignatureChecker(object):
class BaseDoctype(object):
def __repr__(self):
return '<%s:%s>' % (self.__class__.__name__, self.source.stem,)
def __init__(self, *args, **kwargs):
self.source = kwargs.get('source', None)
self.output = kwargs.get('output', None)