From d877a490c3316b8a4ff62c00657d90cb93f72ca5 Mon Sep 17 00:00:00 2001 From: Ryan Williams Date: Sat, 23 Jan 2010 21:29:48 -0500 Subject: [PATCH] Deprecating coros.Queue and coros.Channel --- eventlet/coros.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eventlet/coros.py b/eventlet/coros.py index e863ba0..16eacff 100644 --- a/eventlet/coros.py +++ b/eventlet/coros.py @@ -135,6 +135,9 @@ def CoroutinePool(*args, **kwargs): class Queue(object): def __init__(self): + warnings.warn("coros.Queue is deprecated. Please use " + "eventlet.queue.Queue instead.", + DeprecationWarning, stacklevel=2) self.items = collections.deque() self._waiters = set() @@ -203,6 +206,9 @@ class Queue(object): class Channel(object): def __init__(self, max_size=0): + warnings.warn("coros.Channel is deprecated. Please use " + "eventlet.queue.Queue(0) instead.", + DeprecationWarning, stacklevel=2) self.max_size = max_size self.items = collections.deque() self._waiters = set()