Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
62bd4832
Commit
62bd4832
authored
Jun 19, 2019
by
mergify[bot]
Committed by
GitHub
Jun 19, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1788 from methane/patch-1
stop using deprecated HTMLParser.unescape
parents
8aeff6b2
53b8db35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
changelog.d/1788.change.rst
changelog.d/1788.change.rst
+1
-0
setuptools/py33compat.py
setuptools/py33compat.py
+5
-1
No files found.
changelog.d/1788.change.rst
0 → 100644
View file @
62bd4832
Changed compatibility fallback logic for ``html.unescape`` to avoid accessing ``HTMLParser.unescape`` when not necessary. ``HTMLParser.unescape`` is deprecated and will be removed in Python 3.9.
setuptools/py33compat.py
View file @
62bd4832
...
...
@@ -52,4 +52,8 @@ class Bytecode_compat:
Bytecode
=
getattr
(
dis
,
'Bytecode'
,
Bytecode_compat
)
unescape
=
getattr
(
html
,
'unescape'
,
html_parser
.
HTMLParser
().
unescape
)
unescape
=
getattr
(
html
,
'unescape'
,
None
)
if
unescape
is
None
:
# HTMLParser.unescape is deprecated since Python 3.4, and will be removed
# from 3.9.
unescape
=
html_parser
.
HTMLParser
().
unescape
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment