]> granicus.if.org Git - python/commit
Cleanup pytime.c (#3955)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 11 Oct 2017 15:11:38 +0000 (08:11 -0700)
committerGitHub <noreply@github.com>
Wed, 11 Oct 2017 15:11:38 +0000 (08:11 -0700)
commit277c84067ff5dfa271725ee9da1a9d75a7c0bcd8
tree083e473b6058e4e8ec40bd70145d65b64fa8e042
parent703ff381ffa946c23e7e25b0ae93a636a2607a40
Cleanup pytime.c (#3955)

* Move _PyTime_overflow() at the top
* Move assertion on numerator into _PyTime_ObjectToDenominator()
* PEP 7: add { ... } to if blocks
Python/pytime.c