zeroconf: give inet_aton() str instead of bytes stable
authorAnton Shestakov <av6@dwimlabs.net>
Sat, 02 Dec 2023 15:02:03 -0300
branchstable
changeset 51167 b79f13d6ef25
parent 51166 849745d7da89
child 51168 a9e00554b3e4
zeroconf: give inet_aton() str instead of bytes All other uses of this function in this extension are already fixed (i.e. use strings instead of bytes). This was caught by pytype 2023.11.21 on Python 3.11.2.
hgext/zeroconf/Zeroconf.py
--- a/hgext/zeroconf/Zeroconf.py	Wed Dec 06 16:29:43 2023 +0100
+++ b/hgext/zeroconf/Zeroconf.py	Sat Dec 02 15:02:03 2023 -0300
@@ -1859,7 +1859,7 @@
     info = ServiceInfo(
         b"_http._tcp.local.",
         b"My Service Name._http._tcp.local.",
-        socket.inet_aton(b"127.0.0.1"),
+        socket.inet_aton("127.0.0.1"),
         1234,
         0,
         0,