Remove unnecesary list
Remove unnecesary list

Instead of a list, this uses a generator (also an iterable, which is what the `tuple` function wants).
You could also use `map(int, version.split("-")[0].split("."))`, which would have exactly the same result.
This isn't much but does avoid constructing an object that is immediately discarded.
tenable/pyTenable