Fix Python 2.6 incompatibility

pull/141/head
Tim Bell 2018-04-11 10:34:15 +10:00
parent f87bd1f171
commit 1cbeaebfce
1 changed files with 1 additions and 1 deletions

View File

@ -657,7 +657,7 @@ class LTLayoutContainer(LTContainer):
group = LTTextGroupLRTB([obj1, obj2]) group = LTTextGroupLRTB([obj1, obj2])
plane.remove(obj1) plane.remove(obj1)
plane.remove(obj2) plane.remove(obj2)
removed = {obj1, obj2} removed = [obj1, obj2]
to_remove = [ (c,d,obj1,obj2) for (c,d,obj1,obj2) in dists to_remove = [ (c,d,obj1,obj2) for (c,d,obj1,obj2) in dists
if (obj1 in removed or obj2 in removed) ] if (obj1 in removed or obj2 in removed) ]
for r in to_remove: for r in to_remove: