MNT: Remove never attained return case under gray2rgb

This commit is contained in:
Pratap Vardhan
2015-11-16 12:05:33 +05:30
parent d187840f19
commit aadb2cd0ff
-2
View File
@@ -768,8 +768,6 @@ def gray2rgb(image, alpha=None):
else:
return np.concatenate(3 * (image,), axis=-1)
return image
else:
raise ValueError("Input image expected to be RGB, RGBA or gray.")