RSS 2017-09 - 1/1 Blog notebook (8) sphinx (13)


2017-09 - 1/1

Turn warnings into errors

2017-09-23

The following code turns warnings into errors. Useful to find the source of a warning.

post

Issue in ZipFile on Windows

2017-09-14

Issue 6839 happens when a zip file is created on Windows. The created zip may contain full path with \\ when the file list only contains /. This raises exception BadZipFile with the following message: File name in directory … and header … differ due to a mismatch between backslashes. Another consequence found on GitHub: zipfile raises: File name in directory X and header Y differ.. The class WinZipFile owerwrites method zipfile.ZipFile.open to fix the line which checks that names are consistent in the file list and in the compressed content.

post


RSS 2017-09 - 1/1 2020-08 (2) 2020-09 (1) 2021-01 (1) 2022-03 (1) 2023-05 (1)