Fix the same Py3 incompatibility in a different place

This commit is contained in:
Tony S Yu
2013-09-28 18:40:43 -05:00
parent 5a7e191f7b
commit 20ad4bbca9
+1 -1
View File
@@ -13,7 +13,7 @@ from skimage._shared import six
# Convert colors from `skimage.color` to uint8 and allow access through
# dict or a named tuple.
color_dict = dict((name, tuple(int(255 * c + 0.5) for c in rgb))
for name, rgb in color_dict.iteritems())
for name, rgb in six.iteritems(color_dict))
colors = namedtuple('colors', color_dict.keys())(**color_dict)