J08nY / pyecsca

Python Elliptic Curve Side-Channel Analysis toolkit.
https://pyecsca.org/
MIT License
54 stars 15 forks source link

refactor: replace list comprehension with set comprehension #63

Closed deepsource-autofix[bot] closed 5 months ago

deepsource-autofix[bot] commented 5 months ago

Although there is nothing syntactically wrong with this code, it is hard to read and can be simplified to a set comprehension. Using set comprehension is more performant since there is no need to create a transient list.