summaryrefslogtreecommitdiffstats
path: root/Lib/functools.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-08-09 23:30:55 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-08-09 23:30:55 (GMT)
commit83e818415a591a14677ae6985d3bb0a035cd4c48 (patch)
tree629873089c3a9496cc43af8f4c6572e2917768f7 /Lib/functools.py
parentc1b76e4aaa094eae58abe96628b958c8fe40639d (diff)
downloadcpython-83e818415a591a14677ae6985d3bb0a035cd4c48.zip
cpython-83e818415a591a14677ae6985d3bb0a035cd4c48.tar.gz
cpython-83e818415a591a14677ae6985d3bb0a035cd4c48.tar.bz2
Copy reduce() to _functools so to have functools.reduce() not raise a warning
from usage under -3.
Diffstat (limited to 'Lib/functools.py')
-rw-r--r--Lib/functools.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index 30e1d24..a54f030 100644
--- a/Lib/functools.py
+++ b/Lib/functools.py
@@ -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