]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
fix doco typo in to_wire()
authorBob Halley <halley@dnspython.org>
Tue, 28 Nov 2023 19:16:26 +0000 (11:16 -0800)
committerBob Halley <halley@dnspython.org>
Tue, 28 Nov 2023 19:16:26 +0000 (11:16 -0800)
dns/message.py

index 54611d6fc40a3279b541bb87a073b29f52130236..fff06dfa4521f054b3e6b694d90d165be1a1c875 100644 (file)
@@ -527,7 +527,7 @@ class Message:
         max_size: int = 0,
         multi: bool = False,
         tsig_ctx: Optional[Any] = None,
-        prepend_length : bool = False,
+        prepend_length: bool = False,
         **kw: Dict[str, Any],
     ) -> bytes:
         """Return a string containing the message in DNS compressed wire
@@ -550,7 +550,7 @@ class Message:
         *tsig_ctx*, a ``dns.tsig.HMACTSig`` or ``dns.tsig.GSSTSig`` object, the
         ongoing TSIG context, used when signing zone transfers.
 
-        *prepend_length", a ``bool``, should be set to ``True`` if the caller
+        *prepend_length*, a ``bool``, should be set to ``True`` if the caller
         wants the message length prepended to the message itself.  This is
         useful for messages sent over TCP, TLS (DoT), or QUIC (DoQ).
 
@@ -605,7 +605,7 @@ class Message:
                 self.tsig_ctx = ctx
         wire = r.get_wire()
         if prepend_length:
-            wire = len(wire).to_bytes(2, 'big') + wire
+            wire = len(wire).to_bytes(2, "big") + wire
         return wire
 
     @staticmethod