1
0
mirror of https://github.com/django/django.git synced 2025-03-31 11:37:06 +00:00

[1.7.x] Fixed Python 3.4 test failure.

Backport of 45ef4baf5c from master
This commit is contained in:
Tim Graham 2014-03-26 09:57:00 -04:00
parent 39fc8d4b8e
commit 4bd7411edf

View File

@ -20,8 +20,8 @@ if not use_workaround:
it at call time because Python 2.7 does not have the keyword
argument.
"""
def __init__(self, convert_charrefs=False):
_html_parser.HTMLParser.__init__(self, convert_charrefs=convert_charrefs)
def __init__(self, convert_charrefs=False, **kwargs):
_html_parser.HTMLParser.__init__(self, convert_charrefs=convert_charrefs, **kwargs)
else:
HTMLParser = _html_parser.HTMLParser
else: