__time = __import__('time')
from ..patcher import slurp_properties

__patched__ = ['sleep']
slurp_properties(__time, globals(), ignore=__patched__, srckeys=dir(__time))
from ..greenthread import sleep

sleep  # silence pyflakes

"""Greenified :mod:`time` module

The only thing that needs to be patched from :mod:`time` is :func:`time.sleep` to yield instead
of block the thread.
"""
__time = __import__('time')
from ..patcher import slurp_properties

__patched__ = ['sleep']
slurp_properties(__time, globals(), ignore=__patched__, srckeys=dir(__time))
from .. import greenthread

sleep = greenthread.sleep

Declare sleep as a global instead of relying on import
Declare sleep as a global instead of relying on import

This is a nicer way to define it in the greenified module. Unused imports may
accidentally disappear after using your IDE's "optimize imports" function.
