:orphan: |rss_image| **2017-09 - 1/1** :ref:`Blog ` :ref:`notebook (8) ` :ref:`sphinx (13) ` .. |rss_image| image:: feed-icon-16x16.png :target: ../_downloads/rss.xml :alt: RSS ---- .. index:: 2017-09 .. _ap-month-2017-09-0: 2017-09 - 1/1 +++++++++++++ .. blogpostagg:: :title: Turn warnings into errors :date: 2017-09-23 :keywords: python,warnings :categories: warnings :rawfile: 2017/2017-09_23_warnings.rst The following code turns warnings into errors. Useful to find the source of a warning. ... .. blogpostagg:: :title: Issue in ZipFile on Windows :date: 2017-09-14 :keywords: python,zipfile :categories: issue :rawfile: 2017/2017-09_14_zipfile.rst 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 :class:`WinZipFile ` owerwrites method :epkg:`*py:zipfile:ZipFile:open` to fix the line which checks that names are consistent in the file list and in the compressed content. ---- |rss_image| **2017-09 - 1/1** :ref:`2020-08 (2) ` :ref:`2020-09 (1) ` :ref:`2021-01 (1) ` :ref:`2022-03 (1) ` :ref:`2023-05 (1) `