Title: zipfile: add missing "pwd: expected bytes, got str" exception message
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.9, Python 3.8, Python 3.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: dhillier, serhiy.storchaka, twouters
Priority: normal Keywords: patch

Created on 2020-01-16 13:20 by dhillier, last changed 2020-05-29 12:36 by cheryl.sabella.

Pull Requests
URL Status Linked Edit
PR 18031 open dhillier, 2020-01-16 13:47
Messages (1)
msg360118 - (view) Author: Daniel Hillier (dhillier) * Date: 2020-01-16 13:20
Setting the ZipFile.pwd attribute directly skips the check to ensure the password is a bytes object and, if not, return a user friendly TypeError("pwd: expected bytes, got <type>") informing them of that.
Date User Action Args
2020-05-29 12:36:25cheryl.sabellasetnosy: + twouters, serhiy.storchaka
2020-01-16 13:47:03dhilliersetkeywords: + patch
stage: patch review
pull_requests: + pull_request17427
2020-01-16 13:20:14dhilliercreate