This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients martin.panter, serhiy.storchaka, vstinner, xiang.zhang
Date 2016-11-18.07:19:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479453569.21.0.0695799825104.issue28688@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2016-11-18 07:19:29martin.pantersetrecipients: + martin.panter, vstinner, serhiy.storchaka, xiang.zhang
2016-11-18 07:19:29martin.pantersetmessageid: <1479453569.21.0.0695799825104.issue28688@psf.upfronthosting.co.za>
2016-11-18 07:19:29martin.panterlinkissue28688 messages
2016-11-18 07:19:28martin.pantercreate