From 624d966e641a2a9f3fb22cb14bca94cb4dc7fcfa Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Fri, 12 Dec 2014 22:09:43 -0800 Subject: [PATCH] Retain the existence of a 'EngineBase' until 0.7 or later For the recently renamed 'EngineBase' -> 'Engine' cleanup it would be nice to retain the 'EngineBase' old named class for a deprecation cycle. To enable this use the newly made deprecation function that allows for creating inheritable classes that emit deprecation warnings when constructed. Change-Id: Ia67c924bc5896fbdc59bea25bf08fd87954905d0 --- taskflow/engines/base.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/taskflow/engines/base.py b/taskflow/engines/base.py index dd477a52..a97cf3b7 100644 --- a/taskflow/engines/base.py +++ b/taskflow/engines/base.py @@ -113,3 +113,10 @@ class Engine(object): not currently be preempted) and move the engine into a suspend state which can then later be resumed from. """ + + +# TODO(harlowja): remove in 0.7 or later... +EngineBase = deprecation.moved_inheritable_class(Engine, + 'EngineBase', __name__, + version="0.6", + removal_version="?")