[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kajongg] src: qt4reactor with python3: min(None, float) is a TypeError
From:       Wolfgang Rohdewald <wolfgang () rohdewald ! de>
Date:       2016-12-03 9:17:40
Message-ID: E1cD6Rw-0002UT-Rj () code ! kde ! org
[Download RAW message or body]

Git commit cca218e16eddb178a7f5648ae673429d12eeb40f by Wolfgang Rohdewald.
Committed on 03/12/2016 at 09:16.
Pushed by wrohdewald into branch 'master'.

qt4reactor with python3: min(None, float) is a TypeError

M  +2    -0    src/qt4reactor.py

https://commits.kde.org/kajongg/cca218e16eddb178a7f5648ae673429d12eeb40f

diff --git a/src/qt4reactor.py b/src/qt4reactor.py
index d72db39..7799f1f 100644
--- a/src/qt4reactor.py
+++ b/src/qt4reactor.py
@@ -320,6 +320,8 @@ class QtEventReactor(QtReactor):
 
     def timeout(self):
         t = super(QtEventReactor, self).timeout()
+        if t is None:
+            return 0.0
         return min(t, 0.01)
 
     def iterate(self, delay=None):

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic