[mythtv-commits] [MythTV/mythtv] e57584: Fix error with python3.10 on MythTV/msearch.py
noreply at github.com
Wed Dec 15 18:10:03 UTC 2021
Author: Roland Ernst <rcrernst at gmail.com>
Date: 2021-12-15 (Wed, 15 Dec 2021)
Fix error with python3.10 on MythTV/msearch.py
Traceback (most recent call last):
File "/.../MythTV/msearch.py", line 35, in __init__
TypeError: 'float' object cannot be interpreted as an integer
Python's socket implementation allows to set the blocking mode with
- setblocking([0/1] or
- settimeout(float) # i.e '0.0'
Prior to python3.10, 'setblocking' evaluated the float value to an integer,
which results in this case to zero (tested with 'socket.gettimeout'()).
Make it clear, that we want the non-blocking mode.
Tested with python3.6 and 3.10.
More information about the mythtv-commits