[issue39356] zipfile suprising "except DeprecationWarning:" block

2020-01-17 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue39356] zipfile suprising "except DeprecationWarning:" block

2020-01-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1d3b0aaa54c56282c0a3e7fc396e5b1de8b1974e by Victor Stinner in branch 'master': bpo-39356, zipfile: Remove code handling DeprecationWarning (GH-18027) https://github.com/python/cpython/commit/1d3b0aaa54c56282c0a3e7fc396e5b1de8b1974e --

[issue39356] zipfile suprising "except DeprecationWarning:" block

2020-01-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +17423 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18027 ___ Python tracker ___ _

[issue39356] zipfile suprising "except DeprecationWarning:" block

2020-01-16 Thread STINNER Victor
New submission from STINNER Victor : Lib/zipfile.py contains the following code: try: filename, flag_bits = zinfo._encodeFilenameFlags() centdir = struct.pack(structCentralDir, stringCentralDir, create_version, zinfo.create_system, ext