##// END OF EJS Templates
Use list comprehension instead of filter+lambda
Takafumi Arakaki -
Show More
@@ -378,7 +378,7 b' class TestMagicRunWithPackage(unittest.TestCase):'
378
378
379 def tearDown(self):
379 def tearDown(self):
380 os.chdir(self.__orig_cwd)
380 os.chdir(self.__orig_cwd)
381 sys.path[:] = filter(lambda x: x != self.tempdir.name, sys.path)
381 sys.path[:] = [p for p in sys.path if p != self.tempdir.name]
382 self.tempdir.cleanup()
382 self.tempdir.cleanup()
383
383
384 def check_run_submodule(self, submodule, opts=''):
384 def check_run_submodule(self, submodule, opts=''):
General Comments 0
You need to be logged in to leave comments. Login now