From 61d9812cd814e155d20cc25ac5eb132b5cb7028f Mon Sep 17 00:00:00 2001 From: Juan Nunez-Iglesias Date: Thu, 15 Jan 2015 23:31:51 +1100 Subject: [PATCH] Don't create superfluous ip variable --- skimage/io/_plugins/matplotlib_plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/skimage/io/_plugins/matplotlib_plugin.py b/skimage/io/_plugins/matplotlib_plugin.py index 0ed0bdcc..d5ec47d3 100644 --- a/skimage/io/_plugins/matplotlib_plugin.py +++ b/skimage/io/_plugins/matplotlib_plugin.py @@ -52,9 +52,8 @@ def _get_image_properties(image): (float(immax - immin) / (hi - lo)) < (1. / 255)) unsupported_dtype = image.dtype not in dtypes._supported_types - ip = ImageProperties(signed, out_of_range_float, - low_dynamic_range, unsupported_dtype) - return ip + return ImageProperties(signed, out_of_range_float, + low_dynamic_range, unsupported_dtype) def _raise_warnings(image_properties):