From 0a4977c2f3b8b3cd80f326f44e87076b2578b1b6 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 1 Mar 2004 23:16:22 +0000 Subject: Replace left(), right(), and __reversed__() with the more general purpose __getitem__() and __setitem__(). Simplifies the API, reduces the code size, adds flexibility, and makes deques work with bisect.bisect(), random.shuffle(), and random.sample(). --- Lib/asynchat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/asynchat.py') diff --git a/Lib/asynchat.py b/Lib/asynchat.py index 2c0bc3e902..062ab3eb78 100644 --- a/Lib/asynchat.py +++ b/Lib/asynchat.py @@ -262,7 +262,7 @@ class fifo: return self.list == [] def first (self): - return self.list.left() + return self.list[0] def push (self, data): self.list.append(data) -- cgit v1.2.1