From 2ceee5b9157a8d73a9e593e14ca09931d906c723 Mon Sep 17 00:00:00 2001 From: looooo Date: Sat, 4 Aug 2018 19:12:31 +0200 Subject: [PATCH] py3: define unicode for python3 --- src/Mod/Arch/ArchBuildingPart.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Arch/ArchBuildingPart.py b/src/Mod/Arch/ArchBuildingPart.py index 0b34e8f978..cf39f5b538 100644 --- a/src/Mod/Arch/ArchBuildingPart.py +++ b/src/Mod/Arch/ArchBuildingPart.py @@ -35,6 +35,9 @@ else: def QT_TRANSLATE_NOOP(ctxt,txt): return txt # \endcond +import sys +if sys.version_info.major >= 3: + unicode = str ## @package ArchBuildingPart # \ingroup ARCH