Filipe Laíns
84181c1404
GH-99818: improve the documentation for zipfile.Path and Traversable (GH-101589)
...
Automerge-Triggered-By: GH:FFY00
2023-02-20 11:21:10 -08:00
Gregory P. Smith
5927013e47
gh-101144: Allow open and read_text encoding to be positional. ( #101145 )
...
The zipfile.Path open() and read_text() encoding parameter can be supplied as a positional argument without causing a TypeError again. 3.10.0b1 included a regression that made it keyword only.
Documentation update included as users writing code to be compatible with a wide range of versions will need to consider this for some time.
2023-01-19 23:04:30 -08:00
JustAnotherArchivist
5ee7eb9deb
Document that zipfile's pwd parameter is a `bytes` object ( #100209 )
2022-12-16 16:10:10 +05:30
Stanley
286e3c76a9
gh-99087: Add missing newline for prompts in docs (GH-98993)
...
Add newline for prompts so copying to REPL does not cause errors.
2022-12-08 19:31:19 -08:00
Shantanu
2fadde7e66
gh-93019: Fix markup in zipfile.rst ( #93025 )
...
Fixes #93019
2022-05-20 21:36:09 -07:00
Meer Suri
cc6ae4f483
bpo-46586: Fix more erroneous doc links to builtins ( #31429 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Éric <merwok@netwok.org>
2022-05-02 16:32:44 -06:00
Sam Ezeh
050a8f94c6
bpo-4833: Add ZipFile.mkdir (GH-32160)
2022-04-05 11:41:38 -07:00
Serhiy Storchaka
a25a985535
bpo-28080: Add support for the fallback encoding in ZIP files (GH-32007)
...
* Add the metadata_encoding parameter in the zipfile.ZipFile constructor.
* Add the --metadata-encoding option in the zipfile CLI.
Co-authored-by: Stephen J. Turnbull <stephen@xemacs.org>
2022-03-22 11:52:55 +02:00
Anthony Shaw
c5c5326d47
bpo-39498 Start linking the security warnings in the stdlib modules (GH-18272)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-10 00:35:51 +02:00
andrei kulakov
7c5dab4340
[doc] bpo-43066: zipfile - add note on leading slash in the filename arg (GH-26899)
...
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-08-04 21:34:34 +02:00
Jason R. Coombs
29358e93f2
bpo-44638: Add a reference to the zipp project and hint as to how to use it. (GH-27188)
...
Automerge-Triggered-By: GH:jaraco
2021-07-16 06:14:54 -07:00
Miguel Brito
dc0b364de4
bpo-44095: Add suffix, stem and suffixes to zipfile.Path (GH-26129)
2021-05-14 10:57:36 -07:00
Jason R. Coombs
928dbfc16c
bpo-42090: zipfile.Path.joinpath now accepts multiple arguments (GH-22976)
...
Automerge-Triggered-By: GH:jaraco
2020-12-15 18:12:54 -08:00
Jason R. Coombs
0aeab5c438
bpo-39667: Sync zipp 3.0 (GH-18540)
...
* bpo-39667: Improve pathlib.Path compatibility on zipfile.Path and correct performance degradation as found in zipp 3.0
* 📜 🤖 Added by blurb_it.
* Update docs for new zipfile.Path.open
* Rely on dict, faster than OrderedDict.
* Syntax edits on docs
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2020-02-29 10:34:11 -06:00
Claudiu Popa
65444cf7fe
bpo-38526: Fix zipfile.Path method name to be the correct one ( #17317 )
2019-11-21 16:23:13 -05:00
JunWei Song
3ba51d587f
bpo-36260: Add pitfalls to zipfile module documentation ( #13378 )
...
* bpo-36260: Add pitfalls to zipfile module documentation
We saw vulnerability warning description (including zip bomb) in Doc/library/xml.rst file.
This gave us the idea of documentation improvement.
So, we moved a little bit forward :P
And the doc patch can be found (pr).
* fix trailing whitespace
* 📜 🤖 Added by blurb_it.
* Reformat text for consistency.
2019-09-11 16:04:11 +01:00
Jason R. Coombs
b2758ff955
bpo-36832: add zipfile.Path ( #13153 )
...
* bpo-36832: add zipfile.Path
* bpo-36832: add documentation for zipfile.Path
* 📜 🤖 Added by blurb_it.
* Remove module reference from blurb.
* Sort the imports
* Update docstrings and docs per recommendations.
* Rely on test.support.temp_dir
* Signal that 'root' is the parameter.
* Correct spelling of 'mod'
* Convert docstring to comment for brevity.
* Fix more errors in the docs
2019-05-08 09:45:05 -04:00
Serhiy Storchaka
2b57c43f21
bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)
2018-12-19 08:09:46 +02:00
Serhiy Storchaka
4bb186d7e2
bpo-32035: Fix words about strings and bytes in zipfile documentation. (GH-10592)
2018-11-25 09:51:14 +02:00
nsrip
40bf6cff22
Fix typo in zipfile documentation. (GH-10151)
2018-10-27 17:42:56 +03:00
Marcel Plch
77b112cd56
bpo-34097: Polish API design (GH-8725)
...
Move strict_timestamps to constructor.
2018-08-31 16:43:31 +02:00
Marcel Plch
a2fe1e52eb
bpo-34097: Add support for zipping files older than 1980-01-01 (GH-8270)
...
ZipFile can zip files older than 1980-01-01 and newer than 2107-12-31 using
a new strict_timestamps parameter at the cost of setting the timestamp
to the limit.
2018-08-02 15:04:52 +02:00
Bernhard M. Wiedemann
84521047e4
bpo-30693: zip+tarfile: sort directory listing ( #2263 )
...
tarfile and zipfile now sort directory listing to generate tar and zip archives
in a more reproducible way.
See also https://reproducible-builds.org/docs/stable-inputs/ on that topic.
2018-01-31 11:17:10 +01:00
John Jolly
066df4fd45
bpo-22908: Add seek and tell functionality to ZipExtFile (GH-4966)
...
This allows for nested zip files, tar files within zip files, zip files within tar files, etc.
Contributed by: John Jolly
2018-01-30 00:51:35 -08:00
Bo Bayles
ce237c7d58
bpo-21417: Add compresslevel= to the zipfile module (GH-5385)
...
This allows the compression level to be specified when writing zipfiles
(for the entire file *and* overridden on a per-file basis).
Contributed by Bo Bayles
2018-01-29 21:54:07 -08:00
Xiang Zhang
0710d75425
bpo-29770: remove outdated PYO related info (GH-590)
2017-03-11 13:02:52 +08:00
Serhiy Storchaka
8606e9524a
bpo-28231: The zipfile module now accepts path-like objects for external paths. ( #511 )
2017-03-08 14:37:51 +02:00
Berker Peksag
b6cdc28d34
Issue #29013 : Merge from 3.6
2017-01-02 06:14:39 +03:00
Berker Peksag
5430293fdf
Issue #29013 : Merge from 3.5
2017-01-02 06:14:12 +03:00
Berker Peksag
4950ae1491
Issue #29013 : Fix allowZip64 documentation
...
Zip files can be larger than 4 GiB if allowZip64
is true (default since Python 3.4)
2017-01-02 06:13:42 +03:00
Serhiy Storchaka
d8d9da04b7
Issue #28513 : Documented command-line interface of zipfile.
2016-11-02 12:11:32 +02:00
Serhiy Storchaka
92c1a90462
Issue #28513 : Documented command-line interface of zipfile.
2016-11-02 12:06:15 +02:00
Serhiy Storchaka
5a97bf7dec
Issue #28513 : Documented command-line interface of zipfile.
2016-11-02 12:13:48 +02:00
Serhiy Storchaka
7d6dda4b78
Issue #19795 : Improved more markups of True/False.
2016-10-19 18:36:51 +03:00
Berker Peksag
b7abaa85ae
Issue #28103 : Merge from 3.5
2016-09-13 04:49:44 +03:00
Berker Peksag
7927e75758
Issue #28103 : Use ``'...'`` style in zipfile documentation
...
Patch by Stephen J. Turnbull.
2016-09-13 04:49:12 +03:00
Serhiy Storchaka
b0d497c072
Issue #24693 : Changed some RuntimeError's in the zipfile module to more
...
appropriate types. Improved some error messages and debugging output.
2016-09-10 21:28:07 +03:00
Berker Peksag
ac5a319a1c
Issue #27381 : Merge from 3.5
2016-06-24 12:57:18 +03:00
Berker Peksag
a064382925
Issue #27381 : Remove superfluous paren in zipfile documentation
2016-06-24 12:56:50 +03:00
Martin Panter
9a8b5ca2d7
Issue #27311 : Merge zipfile doc from 3.5
2016-06-15 01:05:27 +00:00
Martin Panter
71e86367e0
Issue #27311 : Fix ZipFile.writestr data argument name.
...
Patch by John Hagen.
2016-06-15 00:24:34 +00:00
Terry Jan Reedy
4da945f361
Merge Issue #22558 .
2016-06-11 15:06:08 -04:00
Terry Jan Reedy
fa089b9b0b
Issue #22558 : Add remaining doc links to source code for Python-coded modules.
...
Reformat header above separator line (added if missing) to a common format.
Patch by Yoni Lavi.
2016-06-11 15:02:54 -04:00
Serhiy Storchaka
e670be2273
Issue #27029 : Removed deprecated support of universal newlines mode from ZipFile.open().
2016-06-11 19:32:44 +03:00
Serhiy Storchaka
f47fc5553b
Issue #26039 : Document ZipInfo.is_dir() and make force_zip64 keyword-only.
...
Patch by Thomas Kluyver.
2016-05-15 12:27:16 +03:00
Serhiy Storchaka
18ee29d0b8
Issue #26039 : zipfile.ZipFile.open() can now be used to write data into a ZIP
...
file, as well as for extracting data. Patch by Thomas Kluyver.
2016-05-13 13:52:49 +03:00
Georg Brandl
3902d62c4e
merge with 3.5
2016-02-26 19:37:52 +01:00
Georg Brandl
5d94134040
Closes #25910 : fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch.
2016-02-26 19:37:12 +01:00
Serhiy Storchaka
503f908090
Issue #26039 : Added zipfile.ZipInfo.from_file() and zipinfo.ZipInfo.is_dir().
...
Patch by Thomas Kluyver.
2016-02-08 00:02:25 +02:00
Senthil Kumaran
e5c05cc8c0
minor clarification on Zipfile 'x' mode - exclusive creation of a file.
2016-01-21 21:06:47 -08:00