aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2014-06-21 13:58:30 +0200
committerGiampaolo Rodola' <g.rodola@gmail.com>2014-06-21 13:58:30 +0200
commitbd0487694c0ce55ae9d425fe9e13e21878a7d6dc (patch)
treeb435cbd28d74a6efa65ade245b3d73ae03f78861 /Lib/asynchat.py
parentfix issue #6916: undocument deprecated asynchat.fifo class.q (diff)
downloadcpython-bd0487694c0ce55ae9d425fe9e13e21878a7d6dc.tar.gz
cpython-bd0487694c0ce55ae9d425fe9e13e21878a7d6dc.tar.bz2
cpython-bd0487694c0ce55ae9d425fe9e13e21878a7d6dc.zip
#6916: raise a deprecation warning if using asynchat.fifo
Diffstat (limited to 'Lib/asynchat.py')
-rw-r--r--Lib/asynchat.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py
index f1a5731bae8..ac83eeae72b 100644
--- a/Lib/asynchat.py
+++ b/Lib/asynchat.py
@@ -275,6 +275,9 @@ class simple_producer:
class fifo:
def __init__ (self, list=None):
+ import warnings
+ warnings.warn('fifo class will be removed in Python 3.6',
+ DeprecationWarning, stacklevel=2)
if not list:
self.list = deque()
else: