[web doctype] don't give through reset_xmldecl to avoid double deprecation warning stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 02 Jul 2013 09:36:20 +0200
branchstable
changeset 9138 bc6e25dbfd04
parent 9137 c791d8fddc15
child 9139 5ca6e0ab0227
[web doctype] don't give through reset_xmldecl to avoid double deprecation warning
web/request.py
--- a/web/request.py	Tue Jul 02 09:35:58 2013 +0200
+++ b/web/request.py	Tue Jul 02 09:36:20 2013 +0200
@@ -922,7 +922,7 @@
         if reset_xmldecl is not None:
             warn('[3.17] reset_xmldecl is deprecated as we only serve html',
                  DeprecationWarning, stacklevel=2)
-        self.main_stream.set_doctype(doctype, reset_xmldecl)
+        self.main_stream.set_doctype(doctype)
 
     # page data management ####################################################