From 4af1c7b6cb899787d128ad4621da61cb95804a1c Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Thu, 11 Jun 2009 17:15:27 +0700 Subject: [PATCH] mark channel.py as deprecated --- eventlet/channel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)