# -*- 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
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)