diff --git a/eventlet/channel.py b/eventlet/channel.py index 3c52824..80146e5 100644 --- a/eventlet/channel.py +++ b/eventlet/channel.py @@ -12,4 +12,5 @@ class channel(coros.queue): def balance(self): return self.sem.balance - +import warnings +warnings.warn("channel is deprecated; use coros.queue(0) which behaves the same", DeprecationWarning, stacklevel=2)