diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-16 06:10:43 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-05-16 06:10:43 (GMT) |
commit | 98019e1cf6dec54ca6c56ceb150869c1430bfda3 (patch) | |
tree | d0696bd6fa0e6dc59200deb840e0a163ab706555 /Lib/asynchat.py | |
parent | 31e59aa7a2968848330a995f05fc47665d1944f2 (diff) | |
download | cpython-98019e1cf6dec54ca6c56ceb150869c1430bfda3.zip cpython-98019e1cf6dec54ca6c56ceb150869c1430bfda3.tar.gz cpython-98019e1cf6dec54ca6c56ceb150869c1430bfda3.tar.bz2 |
Issue #27034: Removed deprecated class asynchat.fifo.
Diffstat (limited to 'Lib/asynchat.py')
-rw-r--r-- | Lib/asynchat.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Lib/asynchat.py b/Lib/asynchat.py index f728d1b..fc1146a 100644 --- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -285,35 +285,6 @@ class simple_producer: return result -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: - self.list = deque(list) - - def __len__(self): - return len(self.list) - - def is_empty(self): - return not self.list - - def first(self): - return self.list[0] - - def push(self, data): - self.list.append(data) - - def pop(self): - if self.list: - return (1, self.list.popleft()) - else: - return (0, None) - - # Given 'haystack', see if any prefix of 'needle' is at its end. This # assumes an exact match has already been checked. Return the number of # characters matched. |