mark channel.py as deprecated

This commit is contained in:
Denis Bilenko
2009-06-11 17:15:27 +07:00
parent f5447ef345
commit 4af1c7b6cb

View File

@@ -12,4 +12,5 @@ class channel(coros.queue):
def balance(self): def balance(self):
return self.sem.balance return self.sem.balance
import warnings
warnings.warn("channel is deprecated; use coros.queue(0) which behaves the same", DeprecationWarning, stacklevel=2)