소스 검색

Fixed Python 3.4 test failure.

Tim Graham 11 년 전
부모
커밋
45ef4baf5c
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      django/utils/html_parser.py

+ 2 - 2
django/utils/html_parser.py

@@ -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: