Mercurial > hg
diff hgext/zeroconf/Zeroconf.py @ 51167:b79f13d6ef25 stable
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.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 02 Dec 2023 15:02:03 -0300 |
parents | e3143ab9dadb |
children | 25e7f9dcad0f 99632adff795 |
line wrap: on
line diff
--- 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,