Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
Use list comprehension instead of filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Oct 21, 2012
1 parent aff1dac commit 10205d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wscript
Expand Up @@ -10,7 +10,7 @@ VERSION = '1.0'
TOP = os.curdir
OUT = 'build'

Context.classes = filter(lambda x: x.cmd != 'distcheck', Context.classes)
Context.classes = [x for x in Context.classes if x.cmd != 'distcheck']

def options(opt):
opt.add_option('--mode', action = 'store', default = 'debug', help = 'the mode to compile in (debug/release)')
Expand Down

0 comments on commit 10205d0

Please sign in to comment.