mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263)
This commit is contained in:
parent
9eb5ca0774
commit
2e576f5aec
22 changed files with 90 additions and 85 deletions
|
@ -4,6 +4,7 @@ approx_equal function.
|
|||
"""
|
||||
|
||||
import collections
|
||||
import collections.abc
|
||||
import decimal
|
||||
import doctest
|
||||
import math
|
||||
|
@ -218,8 +219,8 @@ class NumericTestCase(unittest.TestCase):
|
|||
if rel is None:
|
||||
rel = self.rel
|
||||
if (
|
||||
isinstance(first, collections.Sequence) and
|
||||
isinstance(second, collections.Sequence)
|
||||
isinstance(first, collections.abc.Sequence) and
|
||||
isinstance(second, collections.abc.Sequence)
|
||||
):
|
||||
check = self._check_approx_seq
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue