Commit Graph

14 Commits

Author SHA1 Message Date
4693cf74b2 use variable name instead of underscore in list comprehension
By convention, in Python we use underscores for "throwaway" variables, for example when unpacking a tuple only a few of whose members we're interested in.
2022-11-02 15:14:51 +01:00
5ed8482dcb Merge pull request #2 from zevaverbach/patch-2
bugfix and shortened a few functions
2022-11-02 15:11:53 +01:00
0a96dff67f Merge pull request #1 from zevaverbach/patch-1
compare boolean result using `is` operator instead of `==`
2022-11-02 15:11:27 +01:00
8b5a88409e bugfix and shortened a few functions
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.
2022-11-02 15:09:31 +01:00
f937bbe25b compare boolean result using is operator instead of == 2022-11-02 15:03:11 +01:00
Heath Brown
2f447926a3 Update author information 2022-11-01 19:05:44 -05:00
Heath Brown
5033f87302 Add name and updated Readme 2022-11-01 19:02:42 -05:00
Heath Brown
cf5455fd8e Update hosts_in_subnet to be more predictable 2022-11-01 17:37:24 -05:00
Heath Brown
939ab1ada3 remove async from cli 2022-11-01 17:12:56 -05:00
Heath Brown
7bdf25e5a1 Black formatting 2022-11-01 13:07:54 -05:00
Heath Brown
43e17d0311 Use icmplib instead of pythonping 2022-11-01 13:05:29 -05:00
Heath Brown
1ce01ace73 black format 2022-11-01 11:40:52 -05:00
=
c6cd5b270f Add in pythonping 2022-11-01 11:13:15 -05:00
Heath Brown
a90d83fd2e Initial commit 2022-10-26 23:49:47 -05:00