This should have the exact same functionality as before, I mainly tried to DRY up the code a little while I read it. The git history should make things more clear than the big diff.
~I am going to release the code as it is now on PyPI, before we merge this in.~ (Done.)
Some of the changes are:
Add pre-commit, run hooks
Add metavar for domain check argument
Use default value for --export-formats
Add ipdb to requirements-dev.txt
Use dns.rdatatype.NS instead of 2
Make constants for colors
Delete dead functions
More pythonic not foo in bar -> foo not in bar refactors
Change max_depth to constant, so it is more DRY
And refactor loop to list comprehension
Fix spelling of authoritative w/r/t is_authoritative
This should have the exact same functionality as before, I mainly tried to DRY up the code a little while I read it. The git history should make things more clear than the big diff.
~I am going to release the code as it is now on PyPI, before we merge this in.~ (Done.)
Some of the changes are:
not foo in bar
->foo not in bar
refactorsdns_query_error_occured (bool|str)
->dns_query_error (None|str)
DEFAULT_RESOLVER
toDNS_WATCH_RESOLVER