

def __init__(self, host, port):
    'Create a listening socket on the given hostname and port.\n        '
    self._closed = False
    self.host = host
    self.port = port
    self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
    self.sock.bind((host, port))
    self.sock.listen(5)

dataset/ETHPy150Open beetbox/beets/beets/util/bluelet.py Listener.__init__/original