[CalendarServer-changes] [11353] CalendarServer/branches/users/glyph/warning-cleanups/txdav/xml/ parser_etree.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Jun 13 16:21:08 PDT 2013


Revision: 11353
          http://trac.calendarserver.org//changeset/11353
Author:   glyph at apple.com
Date:     2013-06-13 16:21:08 -0700 (Thu, 13 Jun 2013)
Log Message:
-----------
Ignore doctypes to avoid deprecation warning.

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/warning-cleanups/txdav/xml/parser_etree.py

Modified: CalendarServer/branches/users/glyph/warning-cleanups/txdav/xml/parser_etree.py
===================================================================
--- CalendarServer/branches/users/glyph/warning-cleanups/txdav/xml/parser_etree.py	2013-06-13 23:21:07 UTC (rev 11352)
+++ CalendarServer/branches/users/glyph/warning-cleanups/txdav/xml/parser_etree.py	2013-06-13 23:21:08 UTC (rev 11353)
@@ -50,6 +50,13 @@
         
         self.startDocument()
 
+
+    def doctype(self, name, pubid, system):
+        """
+        Doctype declaration is ignored.
+        """
+
+
     def startDocument(self):
         self.stack = [{
             "name"       : None,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130613/fa6926ee/attachment-0001.html>


More information about the calendarserver-changes mailing list