def __init__(self, doctype):
    'Initialize the filter.\n\n        :param doctype: DOCTYPE as a string or DocType object.\n        '
    if isinstance(doctype, basestring):
        doctype = DocType.get(doctype)
    self.doctype_event = (DOCTYPE, doctype, (None, (- 1), (- 1)))
Initialize the filter.

:param doctype: DOCTYPE as a string or DocType object.
def __init__(self, doctype):
    'Initialize the filter.\n\n        :param doctype: DOCTYPE as a string or DocType object.\n        '
    if isinstance(doctype, basestring):
        doctype = DocType.get(doctype)
    self.doctype_event = (DOCTYPE, doctype, (None, (- 1), (- 1)))