From d8c51fc5801b67f64f4b555aeea616121c93a66c Mon Sep 17 00:00:00 2001 From: Bob Farrell Date: Tue, 24 Jun 2008 19:29:44 +0100 Subject: [PATCH] Added insult to Seamus for being a dickhead. --- bpython.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bpython.py b/bpython.py index 3aea7f9..5609599 100644 --- a/bpython.py +++ b/bpython.py @@ -1063,6 +1063,9 @@ class Repl( object ): sl = sorted( l, key=str.__len__ ) for i, c in enumerate( l[-1] ): +# I hate myself. Please email seamusmb@gmail.com to call him an dickhead for +# insisting that I make bpython 2.4-compatible. I couldn't be bothered +# refactoring, so ghetto all() it is: if not reduce( lambda x, y: (x and y) or False, ( k.startswith( l[-1][:i] ) for k in sl ), True ):