Silence usage of reduce warning in python 2

This commit is contained in:
Anthony Sottile
2018-06-21 13:24:16 -07:00
parent b7b9c54d27
commit 8b4c59e606
2 changed files with 3 additions and 1 deletions

View File

@@ -1,13 +1,14 @@
import inspect
import warnings
from collections import namedtuple
from functools import reduce
from operator import attrgetter
import attr
from ..deprecated import MARK_PARAMETERSET_UNPACKING, MARK_INFO_ATTRIBUTE
from ..compat import NOTSET, getfslineno, MappingMixin
from six.moves import map, reduce
from six.moves import map
EMPTY_PARAMETERSET_OPTION = "empty_parameter_set_mark"