HTMLParserError have been removed from python3.5

Bug #1420063 reported by Alan Cristhian
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Beautiful Soup
Fix Released
Undecided
Unassigned

Bug Description

As say the title, HTMLParserError exception have been removed from python3.5. To reproduce the bug install python3.5 and run it in the command line, then just import bs4.

>>> import bs4
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/alancristhian/env/py35/lib/python3.5/site-packages/bs4/__init__.py", line 30, in <module>
    from .builder import builder_registry, ParserRejectedMarkup
  File "/home/alancristhian/env/py35/lib/python3.5/site-packages/bs4/builder/__init__.py", line 308, in <module>
    from . import _htmlparser
  File "/home/alancristhian/env/py35/lib/python3.5/site-packages/bs4/builder/_htmlparser.py", line 7, in <module>
    from html.parser import (
ImportError: cannot import name 'HTMLParseError'

See also https://docs.python.org/3.5/whatsnew/3.5.html#changes-in-the-python-api

description: updated
Revision history for this message
Leonard Richardson (leonardr) wrote :

Fixed in revision 363.

Changed in beautifulsoup:
status: New → Fix Committed
Changed in beautifulsoup:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.