File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 35
35
del igzip , version
36
36
37
37
except 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
38
41
HAVE_INDEXED_GZIP = False
39
42
40
43
Original file line number Diff line number Diff line change 19
19
import numpy as np
20
20
21
21
from .casting import (shared_range , type_info , OK_FLOATS )
22
- from .openers import Opener , BZ2File
22
+ from .openers import Opener , BZ2File , IndexedGzipFile
23
23
from .deprecated import deprecate_with_version
24
24
from .externals .oset import OrderedSet
25
25
38
38
default_compresslevel = 1
39
39
40
40
#: file-like classes known to hold compressed data
41
- COMPRESSED_FILE_LIKES = (gzip .GzipFile , BZ2File )
41
+ COMPRESSED_FILE_LIKES = (gzip .GzipFile , BZ2File , IndexedGzipFile )
42
42
43
43
44
44
class Recoder (object ):
You can’t perform that action at this time.
0 commit comments