Added insult to Seamus for being a dickhead.

This commit is contained in:
Bob Farrell
2008-06-24 19:29:44 +01:00
parent b2226509f0
commit d8c51fc580
+3
View File
@@ -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 ):