Merge pull request #3609 from asottile/remove_warning_py2_functools_reduce

Silence usage of `reduce` warning in python 2
This commit is contained in:
Anthony Sottile 2018-06-21 15:08:31 -07:00 committed by GitHub
commit 630428c611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1 @@
Silence usage of ``reduce`` warning in python 2

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"