From: Christophe Bourcier Date: Tue, 30 Jul 2019 07:18:33 +0000 (+0200) Subject: Additional python3 porting to make python scripts work X-Git-Tag: V9_4_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=19be2b575dc83b04a1e44882b91a2539fb62cd9b;p=modules%2Fhexablock.git Additional python3 porting to make python scripts work --- diff --git a/src/HEXABLOCK_SWIG/hexablock.py b/src/HEXABLOCK_SWIG/hexablock.py index 5f7c10b..0a58611 100644 --- a/src/HEXABLOCK_SWIG/hexablock.py +++ b/src/HEXABLOCK_SWIG/hexablock.py @@ -140,7 +140,7 @@ def mesh (doc, name=None, dim=3, container="FactoryServer"): stream = doc.getFirstExplicitShape () if stream != None : - shape = geompy.RestoreShape (stream) + shape = geompy.RestoreShape (stream.encode()) else : shape = geompy.MakeBox(0, 0, 0, 1, 1, 1)