projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increase ethernet irq priority.
[bertos.git]
/
wizard
/
qvariant_converter.py
diff --git
a/wizard/qvariant_converter.py
b/wizard/qvariant_converter.py
index 9b24b0c13fb783363d5ecce226a146698d222fc5..85fec2c0f21b7fcb0c36c782b0789b1b8f456068 100644
(file)
--- a/
wizard/qvariant_converter.py
+++ b/
wizard/qvariant_converter.py
@@
-28,18
+28,20
@@
#
# Copyright 2008 Develer S.r.l. (http://www.develer.com/)
#
#
# Copyright 2008 Develer S.r.l. (http://www.develer.com/)
#
-# $Id$
#
# Author: Lorenzo Berni <duplo@develer.com>
#
from PyQt4.QtCore import PYQT_VERSION_STR
#
# Author: Lorenzo Berni <duplo@develer.com>
#
from PyQt4.QtCore import PYQT_VERSION_STR
+# Choose the right version of the qvariant_converter module. It's awful,
+# I know, but this is the only solution in order to mantain compatibility
+# with older PyQt4 version.
if PYQT_VERSION_STR <= "4.4.3":
from qvariant_converter_old import *
if PYQT_VERSION_STR <= "4.4.3":
from qvariant_converter_old import *
-elif
PYQT_VERSION_STR < "4.5.0
":
- from qvariant_converter_
new
import *
-elif
PYQT_VERSION_STR < "4.6.0
":
- from qvariant_converter_
newer
import *
+elif
"4.4.3" < PYQT_VERSION_STR < "4.5
":
+ from qvariant_converter_
4_4
import *
+elif
"4.5" <= PYQT_VERSION_STR < "4.6
":
+ from qvariant_converter_
4_5
import *
else:
else:
- from qvariant_converter_
newest
import *
+ from qvariant_converter_
4_6
import *