+ self.address_family = address_family
+ if address_family == socket.AF_UNIX:
+ # Unix sockets can't be bound if they already exist in the
+ # filesystem. The convention of e.g. X11 is to unlink
+ # before binding again.
+ try:
+ os.unlink(addr)
+ except OSError:
+ pass