]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
remove backend parameter to https()
authorBob Halley <halley@dnspython.org>
Sat, 20 Nov 2021 14:26:05 +0000 (06:26 -0800)
committerBob Halley <halley@dnspython.org>
Sat, 20 Nov 2021 14:26:05 +0000 (06:26 -0800)
dns/asyncquery.py

index 58766e36497a9fcd26108615b79d4b601b2c3e71..0018541db7dbd7d32e45f43dff9125bf9fc9694b 100644 (file)
@@ -360,14 +360,14 @@ async def tls(q, where, timeout=None, port=853, source=None, source_port=0,
 
 async def https(q, where, timeout=None, port=443, source=None, source_port=0,
                 one_rr_per_rrset=False, ignore_trailing=False, client=None,
-                path='/dns-query', post=True, verify=True, backend=None):
+                path='/dns-query', post=True, verify=True):
     """Return the response obtained after sending a query via DNS-over-HTTPS.
 
     *client*, a ``httpx.AsyncClient``.  If provided, the client to use for
     the query.
 
-    *backend*, a ``dns.asyncbackend.Backend``, or ``None``.  If ``None``,
-    the default, then dnspython will use the default backend.
+    Unlike the other dnspython async functions, a backend cannot be provided
+    in this function because httpx always auto-detects the async backend.
 
     See :py:func:`dns.query.https()` for the documentation of the other
     parameters, exceptions, and return type of this method.