smr02
2024-10-02 13:50:56 +02:00
committed by Thomas Krijnen
parent 99ae69f1e4
commit d5fddd5f1b
@@ -225,7 +225,10 @@ def serialize_shape(shape):
shapes.SetFormatNb(2)
shapes.Add(shape)
return shapes.WriteToString()
if hasattr(shapes, "WriteToString"):
return shapes.WriteToString()
else:
return shapes.Write()
def create_shape_from_serialization(