code: def doctype (self, data):
          
          data = data.encode(self.encoding, "ignore")
          self.fd.write("<!DOCTYPE%s>" % data)
docs: Print HTML document type.
  
          @param data: the document type
          @type data: string
          @return: None