• Jeremy Hylton's avatar
    Change warnings to avoid importing re module during startup. · 0dd7fadb
    Jeremy Hylton authored
    Add API function simplefilter() that does not create or install
    regular expressions to match message or module.  Extend the filters
    data structure to store None as an alternative to re.compile("").
    
    Move the _test() function to test_warnings and add some code to try
    and avoid disturbing the global state of the warnings module.
    0dd7fadb
warnings.py 8.63 KB