Skip to content

Commit

Permalink
linting and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
altf4arnold committed Apr 14, 2024
1 parent 4889a93 commit 0321c20
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tldtester/sorter.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ def grabber(data, rdaptlds):

def rdaper():
"""
Downloads the root zone (as to not put constraint on the DNSses and resolve locally). Returns the zonefile in lines.
returns None if not working.
Downloads the RDAP link database from IANA and creates a list of all the tlds that currently support it.
returns either a full or an empty list.
"""
rdaptlds = []
url = urllib.request.urlopen("https://data.iana.org/rdap/dns.json")
Expand All @@ -200,6 +200,7 @@ def rdaper():
rdaptlds.append(j)
return rdaptlds


def main():
try:
zonefile = zonedownloader().splitlines(True)
Expand Down

0 comments on commit 0321c20

Please sign in to comment.