From 1e1c13f498d72f91959b85e677ce888250c70443 Mon Sep 17 00:00:00 2001 From: DamN Date: Fri, 3 May 2019 15:15:09 +0200 Subject: [PATCH] xrange -> range for python 3 support --- LimaCCDs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LimaCCDs.py b/LimaCCDs.py index 58bd862..76e3104 100755 --- a/LimaCCDs.py +++ b/LimaCCDs.py @@ -1731,7 +1731,7 @@ class LimaCCDs(PyTango.Device_4Impl) : @Core.DEB_MEMBER_FUNCT def _image_2_data_array(self, data, category): d = data.buffer - s = [d.shape[i] for i in xrange(len(d.shape) - 1, -1, -1)] + s = [d.shape[i] for i in range(len(d.shape) - 1, -1, -1)] if (category == self.DataArrayCategory.ImageStack) and (len(s) == 2): s += [1] nbDim = len(s) -- 2.22.2