def get(self, query):
    'Retrieve a worker by its UUID string or its socket descriptor.'
    if isinstance(query, str):
        return self.connections.get(query, None)
    else:
        return self.__retrieve_worker_by_socket(query)
Retrieve a worker by its UUID string or its socket descriptor.
def get(self, query):
    
    if isinstance(query, str):
        return self.connections.get(query, None)
    else:
        return self.__retrieve_worker_by_socket(query)