summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2014-12-12 22:09:43 -0800
committerJoshua Harlow <harlowja@gmail.com>2014-12-12 22:12:03 -0800
commit624d966e641a2a9f3fb22cb14bca94cb4dc7fcfa (patch)
treea190d6a29871fbc15228e4238357da78f2f03aff
parentb4e4e214cb69a3f2b9d90c287dcc2dd521a7f425 (diff)
downloadtaskflow-624d966e641a2a9f3fb22cb14bca94cb4dc7fcfa.tar.gz
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
-rw-r--r--taskflow/engines/base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/taskflow/engines/base.py b/taskflow/engines/base.py
index dd477a5..a97cf3b 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="?")