﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17730	Change django.utils.htmlparser to django.utils.html_parser to avoid possible issues with case-insensitivity and the HTMLParser stdlib module	Val Neekman	nobody	"Python Version: 2.6.5
OS: Ubuntu
Django==1.4b1
South==0.7.3
Unidecode==0.04.9
Unipath==0.2.1
Werkzeug==0.8.3
boto==2.1.1
django-debug-toolbar==0.9.4
django-extensions==0.7.1

===========
in utils/HTMLParser.py:
import HTMLParser as _HTMLParser (import succeeds)
As you see from below, _HTMLParser has an attribute called _HTMLParser.

>>> dir(_HTMLParser)
['_HTMLParser', '__builtins__', '__doc__', '__file__', '__name__', '__package__', 're']
>>> 

However on line 11 of utils/HTMLParser.py, it tries to reference HTMParser without the underscore.
_HTMLParser.HTMLParser.__init__(self)

When I changed line 11 from the above to the following, it worked.
_HTMLParser._HTMLParser.__init__(self)

Image attached.
"	Bug	closed	Testing framework	1.4-beta-1	Release blocker	fixed	AttributeError	gldnspud	Accepted	1	0	0	0	0	0
