From 8a3bdd78709b0b91c56baad86f2cc86bace0e7a0 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Sat, 26 Oct 2013 15:51:56 -0700 Subject: [PATCH] Use a list comprehension to collect valid_modes --- py65/tests/devices/test_mpu6502.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/py65/tests/devices/test_mpu6502.py b/py65/tests/devices/test_mpu6502.py index 9ce3505..5a426fb 100644 --- a/py65/tests/devices/test_mpu6502.py +++ b/py65/tests/devices/test_mpu6502.py @@ -5540,8 +5540,7 @@ class Common6502Tests: self.assertEqual(0x0001, mpu.pc) def test_decorated_addressing_modes_are_valid(self): - valid_modes = map(lambda x: x[0], - py65.assembler.Assembler.Addressing) + valid_modes = [x[0] for x in py65.assembler.Assembler.Addressing] mpu = self._make_mpu() for name, mode in mpu.disassemble: self.assertTrue(mode in valid_modes)