]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Move assertion inside _PyTime_ObjectToTimeval()
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 1 Sep 2015 22:50:43 +0000 (00:50 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 1 Sep 2015 22:50:43 +0000 (00:50 +0200)
commitbbdda21a7a54c30211b33ad736d7bbbf19ea08df
tree7fc2818e471cd159bfcc7c9c2413b91e57cfb6b3
parent53e137c8dde65eb0d48d26d262f1f6bc5d103e68
Move assertion inside _PyTime_ObjectToTimeval()

Change also _PyTime_FromSeconds() assertion to ensure that the _PyTime_t type
is used.
Modules/_datetimemodule.c
Python/pytime.c