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

MythTV noreply at mythtv.org
Mon Jun 15 10:14:44 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
----------------------------------+---------------------------
Changes (by Roland Ernst <rcrernst@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"24db137ee6435ae0f1ecc51c580ef1b3d5936402/mythtv"
 24db137ee/mythtv]:
             {{{
             #!CommitTicketReference repository="mythtv"
 revision="24db137ee6435ae0f1ecc51c580ef1b3d5936402"
             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
             }}}

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


More information about the mythtv-commits mailing list