##// 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 292 """A DNS question entry"""
293 293
294 294 def __init__(self, name, type, clazz):
295 if pycompat.ispy3 and isinstance(name, str):
295 if isinstance(name, str):
296 296 name = name.encode('ascii')
297 297 if not name.endswith(b".local."):
298 298 raise NonLocalNameException(name)
General Comments 0
You need to be logged in to leave comments. Login now