Replaced list comprehensions with generator expressions.
authorRahul Goswami <redacted>
Thu, 1 Mar 2018 16:23:26 +0000 (21:53 +0530)
committerGitHub <redacted>
Thu, 1 Mar 2018 16:23:26 +0000 (21:53 +0530)
commit4fdcb85255a2c2e3e36b64fc823874443d8c3bf4
tree47f7235bfc2eec9b1545a36648e915078cb4b1ae
parent53a7b45b3f2fe7fd3ff538f802cad927d5bf45da
Replaced list comprehensions with generator expressions.

Previously, a list had to be created which was not necessary and hindered performance.
Generator expression handles this in the correct way.
Also now the all() can be shortcircuited as soon as it finds first False value and not goes through the complete list.
tests/test_xkcdpass.py
git clone https://git.99rst.org/PROJECT