def optionalUserPrompt(self, message):
        if not self.optionalUserPromptEnabled:
            return

        yield
        result = raw_input(message)
        if result != 'y':
            raise Exception('user abort.')
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/mappingdemo.py/MappingDemo.optionalUserPrompt/original