Skip to content

Fix collections import warnings for Python 3.7 #11786

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/matplotlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
""")

import atexit
from collections import MutableMapping
from collections.abc import MutableMapping
import contextlib
import distutils.version
import functools
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
All string specifications of color, other than "CN", are case-insensitive.
"""

from collections import Sized
from collections.abc import Sized
import itertools
import re

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
.. |m37| image:: /_static/markers/m37.png
"""

from collections import Sized
from collections.abc import Sized
from numbers import Number

import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/rcsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
parameter set listed here should also be visited to the
:file:`matplotlibrc.template` in matplotlib's root source directory.
"""
from collections import Iterable, Mapping
from collections.abc import Iterable, Mapping
from functools import reduce
import operator
import os
Expand Down