Martin Panter added the comment: I didn’t really like adding the _add_filter() special handling in the first place, but I went ahead because I couldn’t think of a better way to avoid the problem with reloading the warnings modules. So unless anyone can suggest anything better, I am okay with your patch (even if you dislike it :).
+ return (item[0], _pattern_key(item[1]), item[2], _pattern_key(item[3])) The key is based on (action, message, category, module). I think you should add item[4] (lineno). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28688> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com