Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: services: helper: make
scan_ports
pythonic
- `list`s are already iterable, so no need to create an iterator (`iter`) to iterate over them - use generator expressions for efficient single-iteration filtering (`filter`ing with `lambda`s generally isn't great because it unnecessarily constructs and applies functions just to perform simple comparisons) - keep the return value as a list, to avoid overburdening the user/receiver (they may wish to iterate more than once, or could require random access)
- Loading branch information