Merge "Update all removal_version from being ? to being 2.0"
This commit is contained in:
@@ -83,7 +83,7 @@ class BlockingConductor(base.Conductor):
|
||||
raise ValueError("Invalid timeout literal: %s" % (wait_timeout))
|
||||
self._dead = threading.Event()
|
||||
|
||||
@removals.removed_kwarg('timeout', version="0.8", removal_version="?")
|
||||
@removals.removed_kwarg('timeout', version="0.8", removal_version="2.0")
|
||||
def stop(self, timeout=None):
|
||||
"""Requests the conductor to stop dispatching.
|
||||
|
||||
|
@@ -22,7 +22,7 @@ from taskflow.conductors.backends import impl_blocking
|
||||
# TODO(harlowja): remove this module soon...
|
||||
removals.removed_module(__name__,
|
||||
replacement="the conductor entrypoints",
|
||||
version="0.8", removal_version="?",
|
||||
version="0.8", removal_version="2.0",
|
||||
stacklevel=4)
|
||||
|
||||
# TODO(harlowja): remove this proxy/legacy class soon...
|
||||
|
@@ -55,7 +55,7 @@ class Engine(object):
|
||||
|
||||
@property
|
||||
@moves.moved_property('atom_notifier', version="0.6",
|
||||
removal_version="?")
|
||||
removal_version="2.0")
|
||||
def task_notifier(self):
|
||||
"""The task notifier.
|
||||
|
||||
@@ -128,4 +128,4 @@ class Engine(object):
|
||||
|
||||
# TODO(harlowja): remove in 0.7 or later...
|
||||
EngineBase = moves.moved_class(Engine, 'EngineBase', __name__,
|
||||
version="0.6", removal_version="?")
|
||||
version="0.6", removal_version="2.0")
|
||||
|
@@ -92,7 +92,7 @@ def _extract_engine(**kwargs):
|
||||
stacklevel = sum(1 for _frame in finder)
|
||||
decorator = renames.renamed_kwarg('engine_conf', 'engine',
|
||||
version="0.6",
|
||||
removal_version="?",
|
||||
removal_version="2.0",
|
||||
# Three is added on since the
|
||||
# decorator adds three of its own
|
||||
# stack levels that we need to
|
||||
|
@@ -166,7 +166,7 @@ class Listener(object):
|
||||
|
||||
# TODO(harlowja): remove in 0.7 or later...
|
||||
ListenerBase = moves.moved_class(Listener, 'ListenerBase', __name__,
|
||||
version="0.6", removal_version="?")
|
||||
version="0.6", removal_version="2.0")
|
||||
|
||||
|
||||
@six.add_metaclass(abc.ABCMeta)
|
||||
@@ -213,7 +213,7 @@ class DumpingListener(Listener):
|
||||
# TODO(harlowja): remove in 0.7 or later...
|
||||
class LoggingBase(moves.moved_class(DumpingListener,
|
||||
'LoggingBase', __name__,
|
||||
version="0.6", removal_version="?")):
|
||||
version="0.6", removal_version="2.0")):
|
||||
|
||||
"""Legacy logging base.
|
||||
|
||||
|
@@ -91,7 +91,7 @@ class DurationListener(base.Listener):
|
||||
|
||||
TimingListener = moves.moved_class(DurationListener,
|
||||
'TimingListener', __name__,
|
||||
version="0.8", removal_version="?")
|
||||
version="0.8", removal_version="2.0")
|
||||
|
||||
|
||||
class PrintingDurationListener(DurationListener):
|
||||
@@ -117,7 +117,7 @@ class PrintingDurationListener(DurationListener):
|
||||
|
||||
PrintingTimingListener = moves.moved_class(
|
||||
PrintingDurationListener, 'PrintingTimingListener', __name__,
|
||||
version="0.8", removal_version="?")
|
||||
version="0.8", removal_version="2.0")
|
||||
|
||||
|
||||
class EventTimeListener(base.Listener):
|
||||
|
@@ -193,7 +193,7 @@ class FakeFilesystem(object):
|
||||
return [selector_func(node, child_node)
|
||||
for child_node in node.bfs_iter()]
|
||||
|
||||
@removals.removed_kwarg('recursive', version="0.11", removal_version="?")
|
||||
@removals.removed_kwarg('recursive', version="0.11", removal_version="2.0")
|
||||
def ls(self, path, recursive=False):
|
||||
"""Return list of all children of the given path.
|
||||
|
||||
|
@@ -505,12 +505,12 @@ def ensure_tree(path):
|
||||
|
||||
Failure = deprecation.moved_proxy_class(failure.Failure,
|
||||
'Failure', __name__,
|
||||
version="0.6", removal_version="?")
|
||||
version="0.6", removal_version="2.0")
|
||||
|
||||
|
||||
Notifier = deprecation.moved_proxy_class(notifier.Notifier,
|
||||
'Notifier', __name__,
|
||||
version="0.6", removal_version="?")
|
||||
version="0.6", removal_version="2.0")
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
|
Reference in New Issue
Block a user