• Mickaël Schoentgen's avatar
    bpo-26185: Fix repr() on empty ZipInfo object (#13441) · 992347d7
    Mickaël Schoentgen authored
    * 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().
    992347d7
2019-05-20-14-17-29.bpo-26185.pQW4mI.rst 81 Bytes