updade from Atlas repo

This commit is contained in:
Luciano Ramalho committed 2021-05-21 18:56:12 -03:00
1 parent c518bf851e
commit 8a330d822b
120 files changed
+2190 -1184

No files matched your search

+4 -3
View File
@@ -1,15 +1,16 @@
from curio import TaskGroup
import curio.socket as socket
from collections.abc import Iterable, AsyncIterator
from typing import NamedTuple
from curio import TaskGroup
import curio.socket as socket
class Result(NamedTuple):
domain: str
found: bool
async def probe(domain: str) -> Result:
async def probe(domain: str) -> Result:
try:
await socket.getaddrinfo(domain, None)
except socket.gaierror: