Skip to content

Commit 5354bd0

Browse files
FIX: import reduce for python3
reduce is not available in the base language in python 3. I used a similar import as in nibabel.affines
1 parent 9a3fb6f commit 5354bd0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

nibabel/cifti2/cifti2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from .. import xmlutils as xml
2525
from ..externals import inflection
2626
from ..externals.six import string_types
27+
from ..externals.six.moves import reduce
2728
from ..filebasedimages import FileBasedHeader, FileBasedImage
2829
from ..nifti2 import Nifti2Image
2930

nibabel/cifti2/parse_cifti2_fast.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from .. import xmlutils as xml
2323
from ..externals import inflection
2424
from ..externals.six import BytesIO
25+
from ..externals.six.moves import reduce
2526
from ..nifti1 import Nifti1Extension, extension_codes, intent_codes
2627
from ..nifti2 import Nifti2Header, Nifti2Image
2728

0 commit comments

Comments
 (0)