from taskflow.engines.helpers import flow_from_detail   # noqa
from taskflow.engines.helpers import load               # noqa
from taskflow.engines.helpers import load_from_detail   # noqa
from taskflow.engines.helpers import load_from_factory  # noqa
from taskflow.engines.helpers import run                # noqa
from taskflow.engines.helpers import save_factory_details  # noqa


from oslo_utils import eventletutils as _eventletutils

# Give a nice warning that if eventlet is being used these modules
# are highly recommended to be patched (or otherwise bad things could
# happen).
_eventletutils.warn_eventlet_not_patched(
    expected_patched_modules=['time', 'thread'])


# Promote helpers to this module namespace (for easy access).
from taskflow.engines.helpers import flow_from_detail   # noqa
from taskflow.engines.helpers import load               # noqa
from taskflow.engines.helpers import load_from_detail   # noqa
from taskflow.engines.helpers import load_from_factory  # noqa
from taskflow.engines.helpers import run                # noqa
from taskflow.engines.helpers import save_factory_details  # noqa

Use oslo_utils eventletutils to warn about eventlet patching
Use oslo_utils eventletutils to warn about eventlet patching

Change-Id: I86ba0de51b5c5789efae187ebc1c46ae32ff8b8b

+ 
+ from oslo_utils import eventletutils as _eventletutils
+ 
+ # Give a nice warning that if eventlet is being used these modules
+ # are highly recommended to be patched (or otherwise bad things could
+ # happen).
+ _eventletutils.warn_eventlet_not_patched(
+     expected_patched_modules=['time', 'thread'])
+ 
+ 
+ # Promote helpers to this module namespace (for easy access).
  from taskflow.engines.helpers import flow_from_detail   # noqa
  from taskflow.engines.helpers import load               # noqa
  from taskflow.engines.helpers import load_from_detail   # noqa
  from taskflow.engines.helpers import load_from_factory  # noqa
  from taskflow.engines.helpers import run                # noqa
  from taskflow.engines.helpers import save_factory_details  # noqa
  
Use oslo_utils eventletutils to warn about eventlet patching
## Code Before:
from taskflow.engines.helpers import flow_from_detail   # noqa
from taskflow.engines.helpers import load               # noqa
from taskflow.engines.helpers import load_from_detail   # noqa
from taskflow.engines.helpers import load_from_factory  # noqa
from taskflow.engines.helpers import run                # noqa
from taskflow.engines.helpers import save_factory_details  # noqa

## Instruction:
Use oslo_utils eventletutils to warn about eventlet patching
## Code After:

from oslo_utils import eventletutils as _eventletutils

# Give a nice warning that if eventlet is being used these modules
# are highly recommended to be patched (or otherwise bad things could
# happen).
_eventletutils.warn_eventlet_not_patched(
    expected_patched_modules=['time', 'thread'])


# Promote helpers to this module namespace (for easy access).
from taskflow.engines.helpers import flow_from_detail   # noqa
from taskflow.engines.helpers import load               # noqa
from taskflow.engines.helpers import load_from_detail   # noqa
from taskflow.engines.helpers import load_from_factory  # noqa
from taskflow.engines.helpers import run                # noqa
from taskflow.engines.helpers import save_factory_details  # noqa
