mirror of
https://github.com/kennethreitz-archive/bpython-gist.git
synced 2026-06-05 23:50:18 +00:00
Added insult to Seamus for being a dickhead.
This commit is contained in:
@@ -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 ):
|
||||
|
||||
Reference in New Issue
Block a user