Menu

#146 Import ContentHandler class correctly

None
closed-fixed
nobody
None
5
2018-11-21
2018-09-09
No

docutils.writers.docutils_xml.TestXml class inherits xml.sax.ContentHandler, but ContentHandler class belongs to xml.sax.handler module, so docutils.writers.docutils_xml module should do import xml.sax.handler.ContentHandler and TestXml class should inherit that class.

In this case, no error exists since xml.sax.__init__ module accidentally imports ContentHandler.

Discussion

  • Günter Milde

    Günter Milde - 2018-11-21
    • status: open --> closed-fixed
     
  • Günter Milde

    Günter Milde - 2018-11-21

    Fixed in r8240. Thanks for the report.

     
    😄
    1

Log in to post a comment.

MongoDB Logo MongoDB