Salome HOME
Additional python3 porting to make python scripts work
[modules/hexablock.git] / src / HEXABLOCK_SWIG / hexablock.py
index f1f8b71885823d598c8c5122bee98b6d7b214d36..0a586111a05b37fc4cd2240450456be789c2c683 100644 (file)
@@ -1,5 +1,5 @@
 # -*- coding: latin-1 -*-
-# Copyright (C) 2009-2016  CEA/DEN, EDF R&D
+# Copyright (C) 2009-2019  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)