Loading django/utils/html_parser.py +6 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,12 @@ use_workaround = ( (current_version >= (3, 0) and current_version < (3, 2, 3)) ) try: HTMLParseError = _html_parser.HTMLParseError except AttributeError: # create a dummy class for Python 3.5+ where it's been removed class HTMLParseError(Exception): pass if not use_workaround: if current_version >= (3, 4): Loading Loading
django/utils/html_parser.py +6 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,12 @@ use_workaround = ( (current_version >= (3, 0) and current_version < (3, 2, 3)) ) try: HTMLParseError = _html_parser.HTMLParseError except AttributeError: # create a dummy class for Python 3.5+ where it's been removed class HTMLParseError(Exception): pass if not use_workaround: if current_version >= (3, 4): Loading