Code Monkey home page Code Monkey logo

Comments (4)

nascheme avatar nascheme commented on August 24, 2024 3

I don't know why this bug is closed. The 'master' branch still uses the deprecated 'html' argument. In Python 3.8.0a2 you can no longer use the XMLParser class:

  File "/usr/local/python-3.8.0a/lib/python3.8/site-packages/defusedxml/common.py", line 113, in fromstring
    parser = DefusedXMLParser(target=_TreeBuilder(),
  File "/usr/local/python-3.8.0a/lib/python3.8/site-packages/defusedxml/ElementTree.py", line 68, in __init__
    _XMLParser.__init__(self, html, target, encoding)
TypeError: __init__() takes 1 positional argument but 4 were given

I think the fix is trivial, change the call to:

_XMLParser.__init__(self, target=target, encoding=encoding)

from defusedxml.

icemac avatar icemac commented on August 24, 2024 1

See #24 which fixes this issue.

from defusedxml.

dimaqq avatar dimaqq commented on August 24, 2024

Perhaps it's time for a micro release?
Esp. now that 3.8 is on the horizon :)

from defusedxml.

icemac avatar icemac commented on August 24, 2024

I think it is closed because there is PR #24 which fixes this issue. It only has to be merged.

from defusedxml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.