Merge pull request #3609 from asottile/remove_warning_py2_functools_reduce
Silence usage of `reduce` warning in python 2
This commit is contained in:
commit
630428c611
|
@ -0,0 +1 @@
|
||||||
|
Silence usage of ``reduce`` warning in python 2
|
|
@ -1,13 +1,14 @@
|
||||||
import inspect
|
import inspect
|
||||||
import warnings
|
import warnings
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
from functools import reduce
|
||||||
from operator import attrgetter
|
from operator import attrgetter
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
|
|
||||||
from ..deprecated import MARK_PARAMETERSET_UNPACKING, MARK_INFO_ATTRIBUTE
|
from ..deprecated import MARK_PARAMETERSET_UNPACKING, MARK_INFO_ATTRIBUTE
|
||||||
from ..compat import NOTSET, getfslineno, MappingMixin
|
from ..compat import NOTSET, getfslineno, MappingMixin
|
||||||
from six.moves import map, reduce
|
from six.moves import map
|
||||||
|
|
||||||
|
|
||||||
EMPTY_PARAMETERSET_OPTION = "empty_parameter_set_mark"
|
EMPTY_PARAMETERSET_OPTION = "empty_parameter_set_mark"
|
||||||
|
|
Loading…
Reference in New Issue