chage collections.abc import to fix deprecation warnings on python 3.7
This commit is contained in:
parent
f1c9efc358
commit
faded25ee8
|
@ -5,7 +5,11 @@ import pprint
|
|||
import _pytest._code
|
||||
import py
|
||||
import six
|
||||
from collections import Sequence
|
||||
import sys
|
||||
if sys.version_info >= (3, 4):
|
||||
from collections.abc import Sequence
|
||||
else:
|
||||
from collections import Sequence
|
||||
|
||||
u = six.text_type
|
||||
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
from collections import namedtuple, MutableMapping as MappingMixin
|
||||
import sys
|
||||
if sys.version_info >= (3, 4):
|
||||
from collections.abc import MutableMapping as MappingMixin
|
||||
else:
|
||||
from collections import MutableMapping as MappingMixin
|
||||
from collections import namedtuple
|
||||
import warnings
|
||||
from operator import attrgetter
|
||||
import inspect
|
||||
|
|
Loading…
Reference in New Issue