mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-03 16:41:21 +08:00
Fix the same Py3 incompatibility in a different place
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user