mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Copy reduce() to _functools so to have functools.reduce() not raise a warning
from usage under -3.
This commit is contained in:
parent
c1b76e4aaa
commit
83e818415a
4 changed files with 127 additions and 3 deletions
|
@ -7,8 +7,7 @@
|
|||
# Copyright (C) 2006 Python Software Foundation.
|
||||
# See C source code for _functools credits/copyright
|
||||
|
||||
from _functools import partial
|
||||
from __builtin__ import reduce
|
||||
from _functools import partial, reduce
|
||||
|
||||
# update_wrapper() and wraps() are tools to help write
|
||||
# wrapper functions that can handle naive introspection
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue