__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

__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.

  __time = __import__('time')
  from ..patcher import slurp_properties
  
  __patched__ = ['sleep']
  slurp_properties(__time, globals(), ignore=__patched__, srckeys=dir(__time))
- from ..greenthread import sleep
+ from .. import greenthread
  
- sleep  # silence pyflakes
+ sleep = greenthread.sleep
  
Declare sleep as a global instead of relying on import
## Code Before:
__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

## Instruction:
Declare sleep as a global instead of relying on import
## Code After:
__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
