[issue43066] Zipfile with leading slashes

2021-08-04 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for the report, Garrison. And Andrei for the patch! ✨ 🍰 ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 ___ Python tracker

[issue43066] Zipfile with leading slashes

2021-08-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 1a2c0ecfa2ef8542baee951f12b60afd165be9cf by Miss Islington (bot) in branch '3.9': [doc] bpo-43066: zipfile - add note on leading slash in the filename arg (GH-26899) (GH-27606) https://github.com/python/cpython/commit/1a2c0ecfa2ef8542baee951f12b60

[issue43066] Zipfile with leading slashes

2021-08-04 Thread miss-islington
miss-islington added the comment: New changeset 98f6a72ff621c2033e8f2c38df410e9bfa2b772a by Miss Islington (bot) in branch '3.10': [doc] bpo-43066: zipfile - add note on leading slash in the filename arg (GH-26899) https://github.com/python/cpython/commit/98f6a72ff621c2033e8f2c38df410e9bfa2b

[issue43066] Zipfile with leading slashes

2021-08-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 7c5dab4340032eb15d3797d8b601ef11649bbab3 by andrei kulakov in branch 'main': [doc] bpo-43066: zipfile - add note on leading slash in the filename arg (GH-26899) https://github.com/python/cpython/commit/7c5dab4340032eb15d3797d8b601ef11649bbab3 --

[issue43066] Zipfile with leading slashes

2021-08-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +26100 pull_request: https://github.com/python/cpython/pull/27605 ___ Python tracker _

[issue43066] Zipfile with leading slashes

2021-08-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +26101 pull_request: https://github.com/python/cpython/pull/27606 ___ Python tracker ___ __

[issue43066] Zipfile with leading slashes

2021-06-24 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch pull_requests: +25475 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26899 ___ Python tracker ___ _

[issue43066] Zipfile with leading slashes

2021-06-24 Thread Garrison Taylor
Garrison Taylor added the comment: That addition to the documentation sounds appropriate to me. Thanks! -- ___ Python tracker ___ _

[issue43066] Zipfile with leading slashes

2021-06-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: I propose fixing this in documentation. Raising an error is probably not warranted because zip files are often created on one system and used on another, so you can't raise an error based on current OS, and having a leading slash in the name is both useful a

[issue43066] Zipfile with leading slashes

2021-05-24 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue43066] Zipfile with leading slashes

2021-01-29 Thread Garrison Taylor
New submission from Garrison Taylor : Currently the zipfile library allows you to create invalid zip files. The following code is an example: from zipfile import ZipFile import tempfile temporary_file = tempfile.NamedTemporaryFile() my_zip = ZipFile(temporary_file.name, 'w') my_zip.writestr('/