Mercurial > hg-stable
changeset 51144: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 | 849745d7da89 |
children | a9e00554b3e4 |
files | hgext/zeroconf/Zeroconf.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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,