File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 23
23
24
24
HAVE_INDEXED_GZIP = True
25
25
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' ):
28
28
warnings .warn ('indexed_gzip is present, but too old '
29
- '(>= 0.6 .0 required): {})' .format (version ))
29
+ '(>= 0.7 .0 required): {})' .format (version ))
30
30
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 )
37
31
# >= 0.8 SafeIndexedGzipFile renamed to IndexedGzipFile
38
32
elif StrictVersion (version ) < StrictVersion ('0.8.0' ):
39
33
IndexedGzipFile = igzip .SafeIndexedGzipFile
You can’t perform that action at this time.
0 commit comments