File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010from runner import path_to_enlightenment
1111
1212from libs .colorama import init , Fore , Style
13+ init () # init colorama
1314
1415class Sensei (MockableTestResult ):
1516 def __init__ (self , stream ):
@@ -239,6 +240,8 @@ def total_koans(self):
239240 def filter_all_lessons (self ):
240241 if not self .all_lessons :
241242 self .all_lessons = glob .glob ('koans/about*.py' )
242- self .all_lessons .remove ('koans/about_extra_credit.py' )
243-
243+ self .all_lessons = filter (lambda filename :
244+ "about_extra_credit" not in filename ,
245+ self .all_lessons )
246+
244247 return self .all_lessons
Original file line number Diff line number Diff line change 1010from runner import path_to_enlightenment
1111
1212from libs .colorama import init , Fore , Style
13+ init () # init colorama
1314
1415class Sensei (MockableTestResult ):
1516 def __init__ (self , stream ):
@@ -239,6 +240,8 @@ def total_koans(self):
239240 def filter_all_lessons (self ):
240241 if not self .all_lessons :
241242 self .all_lessons = glob .glob ('koans/about*.py' )
242- self .all_lessons .remove ('koans/about_extra_credit.py' )
243+ self .all_lessons = list (filter (lambda filename :
244+ "about_extra_credit" not in filename ,
245+ self .all_lessons ))
243246
244- return self .all_lessons
247+ return self .all_lessons
You can’t perform that action at this time.
0 commit comments