Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1098939 Details for
Bug 1285500
AttributeError: module 'html.parser' has no attribute 'HTMLParseError'
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
htmlparseerror.patch
htmlparseerror.patch (text/plain), 554 bytes, created by
Mairi Dulaney
on 2015-11-25 19:08:47 UTC
(
hide
)
Description:
htmlparseerror.patch
Filename:
MIME Type:
Creator:
Mairi Dulaney
Created:
2015-11-25 19:08:47 UTC
Size:
554 bytes
patch
obsolete
>diff --git a/utils/html_parser.py b/utils/html_parser.py >index 5f7e122..42ff079 100644 >--- a/utils/html_parser.py >+++ b/utils/html_parser.py >@@ -9,7 +9,12 @@ use_workaround = ( > (current_version >= (3, 0) and current_version < (3, 2, 3)) > ) > >-HTMLParseError = _html_parser.HTMLParseError >+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):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1285500
: 1098939