From 0321c20ab5852608ff8e6a8d8edbc6755cd6fe44 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Sun, 14 Apr 2024 17:58:34 +0200 Subject: [PATCH] linting and comment --- tldtester/sorter.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tldtester/sorter.py b/tldtester/sorter.py index d3a4e6d..2a4457f 100644 --- a/tldtester/sorter.py +++ b/tldtester/sorter.py @@ -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") @@ -200,6 +200,7 @@ def rdaper(): rdaptlds.append(j) return rdaptlds + def main(): try: zonefile = zonedownloader().splitlines(True)