]> granicus.if.org Git - python/commit
Issue #19421: fix a check in warnings.warn() to be able to use it during Python
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 28 Oct 2013 17:47:22 +0000 (18:47 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 28 Oct 2013 17:47:22 +0000 (18:47 +0100)
commitce5f4fba11262453f06ad431803a672be8a950dd
tree15734e899ef54c8c455c751769c28ce91f2cd154
parent1df788acd40675836a0f4c1fc127007c87f7bb6c
Issue #19421: fix a check in warnings.warn() to be able to use it during Python
finalization.

sys.argv is set to None during Python finalization: add PyList_Check() to avoid
a crash in PyList_Size().
Python/_warnings.c