From 11b80e7bd14501f33e6e0d9704afca8b10dce695 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 20 Feb 2010 18:20:10 +0000 Subject: 3K: BUG: work around bugs in Python 3.1.1 2to3 by not using fixes_reduce Instead, manually import reduce where necessary. --- numpy/lib/arrayterator.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'numpy/lib/arrayterator.py') 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. -- cgit v1.2.1