changeset 49293 | e3143ab9dadb |
parent 49053 | 7d1daa1ef286 |
child 51167 | b79f13d6ef25 |
--- a/hgext/zeroconf/Zeroconf.py Tue May 31 01:23:19 2022 +0200 +++ b/hgext/zeroconf/Zeroconf.py Tue May 31 02:04:24 2022 +0200 @@ -292,7 +292,7 @@ """A DNS question entry""" def __init__(self, name, type, clazz): - if pycompat.ispy3 and isinstance(name, str): + if isinstance(name, str): name = name.encode('ascii') if not name.endswith(b".local."): raise NonLocalNameException(name)