File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 3535 del igzip , version
3636
3737except ImportError :
38+ # nibabel.openers.IndexedGzipFile is imported by nibabel.volumeutils
39+ # to detect compressed file types, so we give a fallback value here.
40+ IndexedGzipFile = gzip .GzipFile
3841 HAVE_INDEXED_GZIP = False
3942
4043
Original file line number Diff line number Diff line change 1919import numpy as np
2020
2121from .casting import (shared_range , type_info , OK_FLOATS )
22- from .openers import Opener , BZ2File
22+ from .openers import Opener , BZ2File , IndexedGzipFile
2323from .deprecated import deprecate_with_version
2424from .externals .oset import OrderedSet
2525
3838default_compresslevel = 1
3939
4040#: file-like classes known to hold compressed data
41- COMPRESSED_FILE_LIKES = (gzip .GzipFile , BZ2File )
41+ COMPRESSED_FILE_LIKES = (gzip .GzipFile , BZ2File , IndexedGzipFile )
4242
4343
4444class Recoder (object ):
You can’t perform that action at this time.
0 commit comments