From 8c868e5bafafc1f9ff30092092bdbce5402d6550 Mon Sep 17 00:00:00 2001 From: Spirillen <44526987+spirillen@users.noreply.github.com> Date: Sat, 18 Jan 2025 23:05:05 +0100 Subject: [PATCH] Testing rust, c++ vs python3.12 BUILD Bob Build (36) --- tools/sort_lists_project/src/main.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tools/sort_lists_project/src/main.rs b/tools/sort_lists_project/src/main.rs index f5fc8f85b6b..1665e09ef64 100644 --- a/tools/sort_lists_project/src/main.rs +++ b/tools/sort_lists_project/src/main.rs @@ -8,18 +8,6 @@ use reqwest::blocking::Client; use reqwest::Proxy; use webbrowser; -import dns.resolver - -def dns_lookup(domain, resolver_address='9.9.9.10'): - resolver = dns.resolver.Resolver() - resolver.nameservers = [resolver_address] - try: - resolver.resolve(domain) - return True - except (dns.resolver.NXDOMAIN, dns.resolver.Timeout, dns.exception.DNSException) as e: - print(f"DNS lookup error for domain {domain}: {e}") - return False - fn find_files_by_name(directory: &str, filenames: &[&str]) -> Vec { let mut matches = Vec::new(); for entry in walkdir::WalkDir::new(directory) {