diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-04-16 11:13:07 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-04-16 17:25:11 +0200 |
commit | f020aca297e8a6c9f7b6a6e08e583847d37edace (patch) | |
tree | b7573c8faefcf5c92d21f1bd297fc72a8da3393f /contrib/seeds/makeseeds.py | |
parent | 0d6992168c2bda85b18fda8f6dea08da433a0dc9 (diff) |
Minor Python cleanups to make flake8 pass with the new rules enabled
Diffstat (limited to 'contrib/seeds/makeseeds.py')
-rwxr-xr-x | contrib/seeds/makeseeds.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/seeds/makeseeds.py b/contrib/seeds/makeseeds.py index 6e253c994d..59044e701a 100755 --- a/contrib/seeds/makeseeds.py +++ b/contrib/seeds/makeseeds.py @@ -6,6 +6,11 @@ # Generate seeds.txt from Pieter's DNS seeder # +import re +import sys +import dns.resolver +import collections + NSEEDS=512 MAX_SEEDS_PER_ASN=2 @@ -22,11 +27,6 @@ SUSPICIOUS_HOSTS = { "54.94.195.96", "54.94.200.247" } -import re -import sys -import dns.resolver -import collections - PATTERN_IPV4 = re.compile(r"^((\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})):(\d+)$") PATTERN_IPV6 = re.compile(r"^\[([0-9a-z:]+)\]:(\d+)$") PATTERN_ONION = re.compile(r"^([abcdefghijklmnopqrstuvwxyz234567]{16}\.onion):(\d+)$") |