[thorstenp] remove some utf8 byteorder mark
This commit is contained in:
parent
fe33410b43
commit
0d33683944
|
@ -1,4 +1,4 @@
|
|||
## common/zeroconf/client_zeroconf.py
|
||||
## common/zeroconf/client_zeroconf.py
|
||||
##
|
||||
## Copyright (C) 2006 Stefan Bethge <stefan@lanpartei.de>
|
||||
## 2006 Dimitur Kirov <dkirov@gmail.com>
|
||||
|
@ -58,9 +58,9 @@ class ZeroconfListener(IdleObject):
|
|||
self.caller = conn_holder.caller
|
||||
self.conn_holder = conn_holder
|
||||
|
||||
def bind(self):
|
||||
flags = socket.AI_PASSIVE
|
||||
if hasattr(socket, 'AI_ADDRCONFIG'):
|
||||
def bind(self):
|
||||
flags = socket.AI_PASSIVE
|
||||
if hasattr(socket, 'AI_ADDRCONFIG'):
|
||||
flags |= socket.AI_ADDRCONFIG
|
||||
ai = socket.getaddrinfo(None, self.port, socket.AF_UNSPEC,
|
||||
socket.SOCK_STREAM, 0, flags)[0]
|
||||
|
|
Loading…
Reference in New Issue