Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Try to import Mapping and MutableMapping from collections.abc#403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gsnedders merged 1 commit intohtml5lib:masterfrom5j9:master
Oct 1, 2018

Conversation

5j9
Copy link
Contributor

@5j95j9 commentedSep 23, 2018

Note that collections.abc has been added in Python 3.3.

Fixes#402

hroncok and hugovk reacted with thumbs up emoji
Note that collections.abc has been added in Python 3.3.Fixeshtml5lib#402
@codecov-io
Copy link

codecov-io commentedSep 23, 2018
edited
Loading

Codecov Report

Merging#403 intomaster willincrease coverage by<.01%.
The diff coverage is100%.

Impacted file tree graph

@@            Coverage Diff             @@##           master     #403      +/-   ##==========================================+ Coverage   90.76%   90.77%   +<.01%==========================================  Files          50       50                Lines        6950     6956       +6       Branches     1328     1328              ==========================================+ Hits         6308     6314       +6  Misses        483      483                Partials      159      159
Impacted FilesCoverage Δ
html5lib/_trie/_base.py61.53% <100%> (+5.01%)⬆️
html5lib/treebuilders/dom.py89.41% <100%> (+0.19%)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update950ea0e...322a2d5. Read thecomment docs.

@5j95j9 changed the titleTry to import MutableMapping from collections.abcTry to import Mapping and MutableMapping from collections.abcSep 23, 2018
Copy link
Member

@gsneddersgsnedders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks for fixing this!

@astrojuanlu
Copy link

Would be great to have a release shipping this among the other improvements!

hugovk, pllim, and prcr reacted with thumbs up emoji

@pllim
Copy link

Still no release with this patch after a year? 😢

TravisLazar, rudolfs-horsts, and prcr reacted with thumbs up emoji

@zsol
Copy link

zsol commentedDec 20, 2019
edited
Loading

Edit: apologies for the noise, there's already discussion happening about this in#419.

This is now breaking with Python 3.9:

❯ pythonPython 3.9.0a2+ (heads/master:b0d4949, Dec 20 2019, 11:38:30)[GCC 8.3.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import html5libTraceback (most recent call last):  File "<stdin>", line 1, in <module>  File "/home/pi/.pyenv/versions/3.9-dev/lib/python3.9/site-packages/html5lib/__init__.py", line 25, in <module>    from .html5parser import HTMLParser, parse, parseFragment  File "/home/pi/.pyenv/versions/3.9-dev/lib/python3.9/site-packages/html5lib/html5parser.py", line 8, in <module>    from . import _tokenizer  File "/home/pi/.pyenv/versions/3.9-dev/lib/python3.9/site-packages/html5lib/_tokenizer.py", line 16, in <module>    from ._trie import Trie  File "/home/pi/.pyenv/versions/3.9-dev/lib/python3.9/site-packages/html5lib/_trie/__init__.py", line 3, in <module>    from .py import Trie as PyTrie  File "/home/pi/.pyenv/versions/3.9-dev/lib/python3.9/site-packages/html5lib/_trie/py.py", line 6, in <module>    from ._base import Trie as ABCTrie  File "/home/pi/.pyenv/versions/3.9-dev/lib/python3.9/site-packages/html5lib/_trie/_base.py", line 3, in <module>    from collections import MappingImportError: cannot import name 'Mapping' from 'collections' (/home/pi/.pyenv/versions/3.9-dev/lib/python3.9/collections/__init__.py)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gsneddersgsneddersgsnedders approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

DeprecationWarning in collections import
6 participants
@5j9@codecov-io@astrojuanlu@pllim@zsol@gsnedders

[8]ページ先頭

©2009-2025 Movatter.jp