]> granicus.if.org Git - python/commit
bpo-27535: Cleanup create_filter() (#4516)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 23 Nov 2017 16:13:44 +0000 (17:13 +0100)
committerGitHub <noreply@github.com>
Thu, 23 Nov 2017 16:13:44 +0000 (17:13 +0100)
commitb98f1715a35d2cbd1e9e45e1e7ae51a39e00dc4a
tree18d545929e80e7eb6a71a7d969cbde439f036241
parent0327bde9da203bb256b58218d012ca76ad0db4e4
bpo-27535: Cleanup create_filter() (#4516)

create_filter() now expects the action as a _Py_Identifier which
avoids string comparison, and more important, to avoid handling the
"unknown action" annoying case.
Python/_warnings.c