##// END OF EJS Templates
zeroconf: constant-fold a `pycompat.ispy3`...
Manuel Jacob -
r50188:e3143ab9 default
parent child Browse files
Show More
@@ -292,7 +292,7 b' class DNSQuestion(DNSEntry):'
292 """A DNS question entry"""
292 """A DNS question entry"""
293
293
294 def __init__(self, name, type, clazz):
294 def __init__(self, name, type, clazz):
295 if pycompat.ispy3 and isinstance(name, str):
295 if isinstance(name, str):
296 name = name.encode('ascii')
296 name = name.encode('ascii')
297 if not name.endswith(b".local."):
297 if not name.endswith(b".local."):
298 raise NonLocalNameException(name)
298 raise NonLocalNameException(name)
General Comments 0
You need to be logged in to leave comments. Login now