Copy reduce() to _functools so to have functools.reduce() not raise a warning

from usage under -3.
This commit is contained in:
Brett Cannon 2008-08-09 23:30:55 +00:00
parent c1b76e4aaa
commit 83e818415a
4 changed files with 127 additions and 3 deletions

View file

@ -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