Py2 compatibility - changed list.copy

This commit is contained in:
Jeremy Metz
2016-05-14 17:33:54 +01:00
parent 9305ec138c
commit 40e161fbb3
+1 -1
View File
@@ -53,7 +53,7 @@ def clear_border(labels, buffer_size=0, bgval=0, in_place=False):
slend = slice(-ext, None)
slices = [slice(s) for s in image.shape]
for d in range(image.ndim):
slicedim = slices.copy()
slicedim = list(slices)
slicedim[d] = slstart
borders[slicedim] = True
slicedim[d] = slend