bpo-26185: Fix repr() on empty ZipInfo object (#13441)
* bpo-26185: Fix repr() on empty ZipInfo object It was failing on AttributeError due to inexistant but required attributes file_size and compress_size. They are now initialized to 0 in ZipInfo.__init__(). * Remove useless hasattr() in ZipInfo._open_to_write() * Completely remove file_size setting in _open_to_write().
M
Mickaël Schoentgen committed
992347d7376765fe3f4fc958fb1be193ba21f6c3
Parent: 1a8de82
Committed by Dino Viehland <dinoviehland@gmail.com>
on 9/9/2019, 1:08:54 PM