#17730: AttributeError: 'module' object has no attribute 'HTMLParser'
-----------------------------------+--------------------------------------
     Reporter:  un33k              |                    Owner:  nobody
         Type:  Bug                |                   Status:  reopened
    Component:  Testing framework  |                  Version:  1.4-beta-1
     Severity:  Normal             |               Resolution:
     Keywords:  AttributeError     |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------

Comment (by gldnspud):

 Indeed, I was able to confirm just now that doing the following allowed me
 to run tests and see them pass:

 1. Rename `django/utils/htmlparser.py` to `django/utils/html_parser.py`
 2. Line 7 of `django/test/html.py`, change from `from
 django.utils.htmlparser import HTMLParser` to `from
 django.utils.html_parser import HTMLParser`

 Note: I was able to find no other references to `htmlparser` in the Django
 1.4b1 code base (other than in `EGG-INFO/SOURCES.txt` which I assume to be
 auto-generated).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17730#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to