[mythtv-commits] [MythTV/mythtv] e57584: Fix error with python3.10 on MythTV/msearch.py
rcrdnalor
noreply at github.com
Wed Dec 15 18:10:03 UTC 2021
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: e57584bab7d25dc3438b7661c3cc33f5d92b4a13
https://github.com/MythTV/mythtv/commit/e57584bab7d25dc3438b7661c3cc33f5d92b4a13
Author: Roland Ernst <rcrernst at gmail.com>
Date: 2021-12-15 (Wed, 15 Dec 2021)
Changed paths:
M mythtv/bindings/python/MythTV/msearch.py
Log Message:
-----------
Fix error with python3.10 on MythTV/msearch.py
Traceback (most recent call last):
File "/.../MythTV/msearch.py", line 35, in __init__
self.sock.setblocking(0.1)
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
mailing list