Replacing list with generator compherension
Merge pull request #5238 from yuvallanger/patch-1

Replacing list with generator compherension