equal
deleted
inserted
replaced
920 :param doctype: the new doctype, e.g. '<!DOCTYPE html>' |
920 :param doctype: the new doctype, e.g. '<!DOCTYPE html>' |
921 """ |
921 """ |
922 if reset_xmldecl is not None: |
922 if reset_xmldecl is not None: |
923 warn('[3.17] reset_xmldecl is deprecated as we only serve html', |
923 warn('[3.17] reset_xmldecl is deprecated as we only serve html', |
924 DeprecationWarning, stacklevel=2) |
924 DeprecationWarning, stacklevel=2) |
925 self.main_stream.set_doctype(doctype, reset_xmldecl) |
925 self.main_stream.set_doctype(doctype) |
926 |
926 |
927 # page data management #################################################### |
927 # page data management #################################################### |
928 |
928 |
929 def get_page_data(self, key, default=None): |
929 def get_page_data(self, key, default=None): |
930 """return value associated to `key` in current page data""" |
930 """return value associated to `key` in current page data""" |