]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39356, zipfile: Remove code handling DeprecationWarning (GH-18027)
authorVictor Stinner <vstinner@python.org>
Fri, 17 Jan 2020 14:17:48 +0000 (15:17 +0100)
committerGitHub <noreply@github.com>
Fri, 17 Jan 2020 14:17:48 +0000 (15:17 +0100)
commit1d3b0aaa54c56282c0a3e7fc396e5b1de8b1974e
treea8900b44518559521a9613fed4f71dce6422722f
parent10fd6b2b9f0aeb8f5a0ce4cb4b9f21f942d39a71
bpo-39356, zipfile: Remove code handling DeprecationWarning (GH-18027)

Remove old "except DeprecationWarning:" code path added by
commit bf02e3bb21b2d75cba4ce409a14ae64dbc2dd6d2. It's no longer
needed.

struct.pack() no longer emit DeprecationWarning if getting a float
whereas an integer is expected. It now raises an hard error instead.
Lib/zipfile.py