Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silence usage of `reduce` warning in python 2 #3609

Merged
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+3 −1
Diff settings

Always

Just for now

Silence usage of `reduce` warning in python 2

  • Loading branch information...
asottile committed Jun 21, 2018
commit 8b4c59e606285d76011934e61eb7b110262f37ff
Copy path View file
@@ -0,0 +1 @@
Silence usage of ``reduce`` warning in python 2
@@ -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"
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.