def clear_socket(self):
        'Remove socket file'
        if os.path.exists(self.addr):
            log.debug("Removing socket file %s" % self.addr)
            try:
                os.unlink(self.addr)
            except OSError as err:
                log.warn("Error: %s" % err)
dataset/ETHPy150Open Anaconda-Platform/chalmers/chalmers/program/posix.py/PosixProgram.clear_socket/original