import `warnings` if sys.warnoptions is set?

0 views
Skip to first unread message

Hartmut Goebel

unread,
Feb 7, 2012, 7:10:58 AM2/7/12
to PyIns...@googlegroups.com
Hi,

while working on issue #505, I discovered another issue:


In `pythonrun.c` the `warnings` module is imported, if sys.warnoptions
is non-empty.

If somebody adds `[('-Wignore','','OPTION')],` to the EXE section of the
spec file, this will set sys.warnoptions. In this case we should
implement a runtime-hook or handle this case in `_pyi_bootstrap.py` (ex
`mountzlib`).

What do you think? See #506.

--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP

Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult ist Mitglied bei http://www.7-it.de


Reply all
Reply to author
Forward
0 new messages