X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHEXABLOCK_SWIG%2Fhexablock.py;h=f4d67e79ebe00d463347f90df60fbf50a6c954fd;hb=167be4931bccbbe01e53313d18a9d3dd1484ecb4;hp=f1f8b71885823d598c8c5122bee98b6d7b214d36;hpb=b226934c20469bf67d940e79062230aff91c0b94;p=modules%2Fhexablock.git diff --git a/src/HEXABLOCK_SWIG/hexablock.py b/src/HEXABLOCK_SWIG/hexablock.py index f1f8b71..f4d67e7 100644 --- a/src/HEXABLOCK_SWIG/hexablock.py +++ b/src/HEXABLOCK_SWIG/hexablock.py @@ -1,5 +1,5 @@ # -*- coding: latin-1 -*- -# Copyright (C) 2009-2016 CEA/DEN, EDF R&D +# Copyright (C) 2009-2020 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -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)