Commits

Greg Malcolm committed 1521583 Merge

Merging generators fix

Comments (0)

Files changed (1)

python 2/koans/about_generators.py

         self.assertEqual(2, num_list[0])
         
         # A generator has to be iterated through.
-        self.assertRaises(___, num_generator[0])  # Evaluates num_generator[0]
-        self.assertEqual(__, list(num_generator)[0])  # This works though
+        self.assertRaises(___, num_generator[0]) # Evaluates num_generator[0]
+        self.assertEqual(__, list(num_generator)[0]) # This works though
         
         # Both list comprehensions and generators can be iterated
         # though. However, a generator function is only called on the