8b5a88409e4b0f6c0d3ee2082b13701b456a22ce
The bug was on line 48, which had `if not is_subnet`, checking the truthiness of the `is_subnet` function rather than calling it with `network`. The other changes shorten up function bodies by, variously, removing an intermediate variable, returning early in a function returning a boolean, and simplifying `is_subnet` to a single line.
pscanner
Table of Contents
Installation
pip install pscanner
Development
Prereqs for development
pipx install hatch
Running development environment
hatch shell
License
pscanner is distributed under the terms of the MIT license.
Description
Messing around with port scanning in python using https://www.thepythoncode.com/article/make-port-scanner-python
Languages
Python
100%