--- a/graphics/SFC_Objects.py Thu Feb 02 16:12:26 2012 +0100
+++ b/graphics/SFC_Objects.py Tue Feb 07 19:12:25 2012 +0100
@@ -1222,8 +1222,8 @@
for output in self.Outputs:
output_pos = output.GetRelPosition()
output.SetPosition(wx.Point(output_pos.x - minx, output_pos.y))
- self.Inputs.sort(lambda x, y: x.Pos.x.__cmp__(y.Pos.x))
- self.Outputs.sort(lambda x, y: x.Pos.x.__cmp__(y.Pos.x))
+ self.Inputs.sort(lambda x, y: cmp(x.Pos.x, y.Pos.x))
+ self.Outputs.sort(lambda x, y: cmp(x.Pos.x, y.Pos.x))
self.Pos.x += minx
self.Size[0] = maxx - minx
connector.MoveConnected()