[mythtv-commits] Ticket #13622: Python Bindings: traceback in datetime.timestamp()

MythTV noreply at mythtv.org
Tue Jun 16 11:30:58 UTC 2020


#13622: Python Bindings: traceback in datetime.timestamp()
----------------------------------+---------------------------
 Reporter:  rcrdnalor             |          Owner:  rcrdnalor
     Type:  Bug Report - General  |         Status:  closed
 Priority:  minor                 |      Milestone:  31.1
Component:  Bindings - Python     |        Version:  v31-fixes
 Severity:  medium                |     Resolution:  fixed
 Keywords:  Python timestamp      |  Ticket locked:  0
----------------------------------+---------------------------

Comment (by Roland Ernst <rcrernst@…>):

 In [changeset:"d8ecd8fe7c85165fe3c818a6d07e7ca9472e7735/mythtv"
 d8ecd8fe7/mythtv]:
             {{{
             #!CommitTicketReference repository="mythtv"
 revision="d8ecd8fe7c85165fe3c818a6d07e7ca9472e7735"
             Python: fix timestamp calculation

 Python 3.8 changed the handling of the 'datetime' class:
 According release notes ("What's New In Python 3.8"):
 Arithmetic operations between subclasses of datetime.date or
 datetime.datetime and datetime.timedelta objects now return an
 instance of the subclass, rather than the base class.

 This caused an error in the calculation of a 'timestamp'.

 Tested with python2.7, python3.6 and python3.8.
 No other occurences of similar arithmetic operations identified.

 Fixes #13622

 (cherry picked from commit 24db137ee6435ae0f1ecc51c580ef1b3d5936402)
             }}}

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13622#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list