Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, scheduler=ensure_future, loop=None):
warn(DeprecationWarning(
'pyee.EventEmitter is deprecated and will be removed in a future '
'major version; you should instead use either '
'pyee.AsyncIOEventEmitter, pyee.TwistedEventEmitter, '
'pyee.ExecutorEventEmitter, pyee.TrioEventEmitter, '
'or pyee.BaseEventEmitter.'
))
super(CompatEventEmitter, self).__init__()
self._schedule = scheduler
self._loop = loop