From 2e3543e566476a8be29379cf231d07b6c8697713 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Fri, 12 Jun 2015 11:35:19 -0700 Subject: [PATCH] Remove usage of deprecated 'task_notifier' property in build_car example Change-Id: Ia9d18c09709d550a017c5efbe1075b9a551496f6 --- taskflow/examples/build_a_car.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taskflow/examples/build_a_car.py b/taskflow/examples/build_a_car.py index a3291817..cb952f39 100644 --- a/taskflow/examples/build_a_car.py +++ b/taskflow/examples/build_a_car.py @@ -167,7 +167,7 @@ engine = taskflow.engines.load(flow, store={'spec': spec.copy()}) # flow_watch function for flow state transitions, and registers the # same all (ANY) state transitions for task state transitions. engine.notifier.register(ANY, flow_watch) -engine.task_notifier.register(ANY, task_watch) +engine.atom_notifier.register(ANY, task_watch) eu.print_wrapped("Building a car") engine.run() @@ -180,7 +180,7 @@ spec['doors'] = 5 engine = taskflow.engines.load(flow, store={'spec': spec.copy()}) engine.notifier.register(ANY, flow_watch) -engine.task_notifier.register(ANY, task_watch) +engine.atom_notifier.register(ANY, task_watch) eu.print_wrapped("Building a wrong car that doesn't match specification") try: