From adb836c33bf1460981d48bea731c873bcd4e9521 Mon Sep 17 00:00:00 2001 From: looooo Date: Sat, 2 Sep 2017 21:26:27 +0200 Subject: [PATCH] qt5: fix in Draft translate --- src/Mod/Draft/DraftGui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Draft/DraftGui.py b/src/Mod/Draft/DraftGui.py index 8a72e1d9a0..325f4bfed5 100644 --- a/src/Mod/Draft/DraftGui.py +++ b/src/Mod/Draft/DraftGui.py @@ -75,7 +75,7 @@ except AttributeError: if set to true utf8 encoded unicode will be returned. This option does not have influence on python3 as for python3 we are returning utf-8 encoded unicode by default! """ - if sys.version >= 3 or utf8_decode: + if sys.version_info.major >= 3 or utf8_decode: return QtGui.QApplication.translate(context, text, None) else: return QtGui.QApplication.translate(context, text, None).encode("utf8")