Commit 9757b718 authored by Unknown's avatar Unknown

minor fix to allow learn_color_balance.py to work with python 3+

map object returns an iterator, not a list, in python 3.
fix: list(map()) is still compatible with python 2
parent f33d1808
......@@ -221,7 +221,7 @@ if __name__ == '__main__':
"specify the -g parameter"))
sys.exit(1)
img_range = map(int,parse_sequence(args.range))
img_range = list(map(int,parse_sequence(args.range)))
if len(img_range)!=2:
print("Error: Please specify the -r parameter in form <first_image_index>,<last_image_index>")
sys.exit(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment