summaryrefslogtreecommitdiff
path: root/numpy/lib/arrayterator.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-02-20 18:20:10 +0000
committerPauli Virtanen <pav@iki.fi>2010-02-20 18:20:10 +0000
commit11b80e7bd14501f33e6e0d9704afca8b10dce695 (patch)
tree9df9d7e9a44c7e6711feed9101363f380643a820 /numpy/lib/arrayterator.py
parent9f9098f6f77f82eddb2471991d08ec0a37ead6f9 (diff)
downloadnumpy-11b80e7bd14501f33e6e0d9704afca8b10dce695.tar.gz
3K: BUG: work around bugs in Python 3.1.1 2to3 by not using fixes_reduce
Instead, manually import reduce where necessary.
Diffstat (limited to 'numpy/lib/arrayterator.py')
-rw-r--r--numpy/lib/arrayterator.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/lib/arrayterator.py b/numpy/lib/arrayterator.py
index d4a91b001..3f07cd263 100644
--- a/numpy/lib/arrayterator.py
+++ b/numpy/lib/arrayterator.py
@@ -14,6 +14,10 @@ from operator import mul
__all__ = ['Arrayterator']
+import sys
+if sys.version_info[0] >= 3:
+ from functools import reduce
+
class Arrayterator(object):
"""
Buffered iterator for big arrays.