[issue28067] Do not call localtime in datetime module

2016-09-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- keywords: +patch stage: -> commit review Added file: http://bugs.python.org/file44537/issue28067.diff ___ Python tracker ___ ___

[issue28067] Do not call localtime in datetime module

2016-09-10 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: POSIX localtime function mutates global state which leads to subtle bugs on some platforms. We should call localtime_r or localtime_s instead. See issue 22627. -- assignee: belopolsky messages: 275678 nosy: belopolsky priority: normal severity