Improve loop construct.
authorThomas Mansencal <thomas.mansencal@gmail.com>
Thu, 30 Jul 2015 10:17:52 +0000 (22:17 +1200)
committerThomas Mansencal <thomas.mansencal@gmail.com>
Thu, 30 Jul 2015 10:17:52 +0000 (22:17 +1200)
aces_1.0.0/python/aces_ocio/aces_config.py

index 0b8a220..7c067ce 100755 (executable)
@@ -487,7 +487,7 @@ def integrate_looks_into_views(looks,
                     output_colorspace_c = copy.deepcopy(output_colorspace)
 
                     # for look_name in look_names:
-                    for i in range(len(look_names)):
+                    for i, look_name in enumerate(look_names):
                         look_name = look_names[i]
 
                         # Add the LookTransform to the head of the