mirror of https://github.com/tLDP/python-tldp
add the document stem to the __repr__
This commit is contained in:
parent
066f319156
commit
eac92b5354
|
@ -60,6 +60,9 @@ class SignatureChecker(object):
|
||||||
|
|
||||||
class BaseDoctype(object):
|
class BaseDoctype(object):
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return '<%s:%s>' % (self.__class__.__name__, self.source.stem,)
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
self.source = kwargs.get('source', None)
|
self.source = kwargs.get('source', None)
|
||||||
self.output = kwargs.get('output', None)
|
self.output = kwargs.get('output', None)
|
||||||
|
|
Loading…
Reference in New Issue