mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
utils.iter: Allow None argument to filterfalse and all.
Fixes bug in the Debian plugin.
This commit is contained in:
parent
df130e8931
commit
5b29c8c0dd
@ -38,6 +38,8 @@ from . import minisix
|
||||
# For old plugins
|
||||
ifilter = filter
|
||||
def filterfalse(p, L):
|
||||
if p is None:
|
||||
p = lambda x:x
|
||||
return filter(lambda x:not p(x), L)
|
||||
ifilterfalse = filterfalse
|
||||
imap = map
|
||||
|
Loading…
Reference in New Issue
Block a user