Skip to content

Commit 854d722

Browse files
committed
RF: Make minimum required indexed_gzip version 0.7.
1 parent b4db866 commit 854d722

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

nibabel/openers.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,11 @@
2323

2424
HAVE_INDEXED_GZIP = True
2525

26-
# < 0.6 - no good
27-
if StrictVersion(version) < StrictVersion('0.6.0'):
26+
# < 0.7 - no good
27+
if StrictVersion(version) < StrictVersion('0.7.0'):
2828
warnings.warn('indexed_gzip is present, but too old '
29-
'(>= 0.6.0 required): {})'.format(version))
29+
'(>= 0.7.0 required): {})'.format(version))
3030
HAVE_INDEXED_GZIP = False
31-
# < 0.7 - does not support drop_handles
32-
elif StrictVersion(version) < StrictVersion('0.7.0'):
33-
class IndexedGzipFile(igzip.SafeIndexedGzipFile):
34-
def __init__(self, *args, **kwargs):
35-
kwargs.pop('drop_handles', None)
36-
super(IndexedGzipFile, self).__init__(*args, **kwargs)
3731
# >= 0.8 SafeIndexedGzipFile renamed to IndexedGzipFile
3832
elif StrictVersion(version) < StrictVersion('0.8.0'):
3933
IndexedGzipFile = igzip.SafeIndexedGzipFile

0 commit comments

Comments
 (0)