This repository was archived by the owner on Jan 30, 2023. It is now read-only.
Commit 0c2c9d4
committed
Fix zip file opening.
ZipFile.open has very different meaning from TarFile.open. ZipFile.__init__ and TarFile.__init__ are fairly similar, but the latter does not have the higher-level features of TarFile.open, namely transparent handling of compression.
This is a bit hacky, but it allows SageTarFile.__init__ to take full advantage of the TarFile.open classmethod.1 parent 66d67dc commit 0c2c9d4
1 file changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
90 | 94 | | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| |||
185 | 190 | | |
186 | 191 | | |
187 | 192 | | |
188 | | - | |
| 193 | + | |
189 | 194 | | |
190 | 195 | | |
191 | 196 | | |
| |||
196 | 201 | | |
197 | 202 | | |
198 | 203 | | |
199 | | - | |
| 204 | + | |
200 | 205 | | |
201 | 206 | | |
202 | 207 | | |
| |||
208 | 213 | | |
209 | 214 | | |
210 | 215 | | |
211 | | - | |
| 216 | + | |
212 | 217 | | |
213 | 218 | | |
214 | 219 | | |
| |||
0 commit comments