[issue9152] Dead code in datetime module

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Merged in 3.1 in r82536. -- stage: commit review -> committed/rejected versions: +Python 3.1 ___ Python tracker ___ __

[issue9152] Dead code in datetime module

2010-07-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r82533. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue9152] Dead code in datetime module

2010-07-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- keywords: +patch nosy: +mark.dickinson resolution: -> accepted stage: -> commit review Added file: http://bugs.python.org/file17851/issue9152.diff ___ Python tracker __

[issue9152] Dead code in datetime module

2010-07-03 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Apparently introduced by a wholesale elimination of PyString_ in r57374, the else clause in the following snippet from call_tzname is redundant: if (!PyUnicode_Check(result)) { PyErr_Format(PyExc_TypeError, "tzinfo.tzname() must "