forked frompython/cpython
- Notifications
You must be signed in to change notification settings - Fork0
Commit74cf198
Make zipfile.ZipInfo.compress_level public.A property is used to retain the behavior of the ._compresslevel.People constructing zipfile.ZipInfo instances to pass into existing APIs to control per-file compression levels already treat this as public, there was never a reason for it not to be.I used the more modern name compress_level instead of compresslevel as the keyword argument on other ZipFile APIs is called to be consistent with compress_type and a general long term preference of not runningwordstogether without a separator in names.
1 parent698c66d commit74cf198
File tree
4 files changed
+40
-11
lines changed- Doc/library
- Lib
- test/test_zipfile
- zipfile
- Misc/NEWS.d/next/Library
4 files changed
+40
-11
lines changedLines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
82 | 87 |
| |
83 | 88 |
| |
84 | 89 |
| |
|
Lines changed: 13 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
318 |
| - | |
| 318 | + | |
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
| |||
408 | 408 |
| |
409 | 409 |
| |
410 | 410 |
| |
411 |
| - | |
| 411 | + | |
412 | 412 |
| |
413 | 413 |
| |
414 | 414 |
| |
| |||
3011 | 3011 |
| |
3012 | 3012 |
| |
3013 | 3013 |
| |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
| 3017 | + | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
| 3023 | + | |
| 3024 | + | |
3014 | 3025 |
| |
3015 | 3026 |
| |
3016 | 3027 |
| |
|
Lines changed: 18 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
371 | 371 |
| |
372 | 372 |
| |
373 | 373 |
| |
374 |
| - | |
| 374 | + | |
375 | 375 |
| |
376 | 376 |
| |
377 | 377 |
| |
378 | 378 |
| |
379 | 379 |
| |
380 | 380 |
| |
381 | 381 |
| |
382 |
| - | |
| 382 | + | |
383 | 383 |
| |
384 | 384 |
| |
385 | 385 |
| |
| |||
413 | 413 |
| |
414 | 414 |
| |
415 | 415 |
| |
416 |
| - | |
| 416 | + | |
417 | 417 |
| |
418 | 418 |
| |
419 | 419 |
| |
| |||
435 | 435 |
| |
436 | 436 |
| |
437 | 437 |
| |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
438 | 447 |
| |
439 | 448 |
| |
440 | 449 |
| |
| |||
1191 | 1200 |
| |
1192 | 1201 |
| |
1193 | 1202 |
| |
1194 |
| - | |
| 1203 | + | |
1195 | 1204 |
| |
1196 | 1205 |
| |
1197 | 1206 |
| |
| |||
1603 | 1612 |
| |
1604 | 1613 |
| |
1605 | 1614 |
| |
1606 |
| - | |
| 1615 | + | |
1607 | 1616 |
| |
1608 | 1617 |
| |
1609 | 1618 |
| |
| |||
1855 | 1864 |
| |
1856 | 1865 |
| |
1857 | 1866 |
| |
1858 |
| - | |
| 1867 | + | |
1859 | 1868 |
| |
1860 |
| - | |
| 1869 | + | |
1861 | 1870 |
| |
1862 | 1871 |
| |
1863 | 1872 |
| |
| |||
1875 | 1884 |
| |
1876 | 1885 |
| |
1877 | 1886 |
| |
1878 |
| - | |
| 1887 | + | |
1879 | 1888 |
| |
1880 | 1889 |
| |
1881 | 1890 |
| |
| |||
1896 | 1905 |
| |
1897 | 1906 |
| |
1898 | 1907 |
| |
1899 |
| - | |
| 1908 | + | |
1900 | 1909 |
| |
1901 | 1910 |
| |
1902 | 1911 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + |
0 commit comments
Comments
(0)