def inputhook(context):
    def _main_quit(*a, **kw):
        gtk.main_quit()
        return False

    gobject.io_add_watch(context.fileno(), gobject.IO_IN, _main_quit)
    gtk.main()
Change provision state names for API backwards compatability.
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/examples/inputhook.py/inputhook--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/api/controllers/v1/node.py/update_state_in_older_versions