summaryrefslogtreecommitdiff
path: root/src/lxml/dtd.pxi
diff options
context:
space:
mode:
Diffstat (limited to 'src/lxml/dtd.pxi')
-rw-r--r--src/lxml/dtd.pxi7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lxml/dtd.pxi b/src/lxml/dtd.pxi
index 2c8f7aa2..af194bfd 100644
--- a/src/lxml/dtd.pxi
+++ b/src/lxml/dtd.pxi
@@ -20,7 +20,8 @@ class DTDValidateError(DTDError):
# DTD
cdef class DTD(_Validator):
- """A DTD validator.
+ """DTD(self, file=None, external_id=None)
+ A DTD validator.
Can load from filesystem directly given a filename or file-like object.
Alternatively, pass the keyword parameter ``external_id`` to load from a
@@ -56,7 +57,9 @@ cdef class DTD(_Validator):
tree.xmlFreeDtd(self._c_dtd)
def __call__(self, etree):
- """Validate doc using the DTD.
+ """__call__(self, etree)
+
+ Validate doc using the DTD.
Returns true if the document is valid, false if not.
"""