]> granicus.if.org Git - python/commitdiff
Use the new name for the parser module.
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 30 Aug 2007 03:10:46 +0000 (03:10 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 30 Aug 2007 03:10:46 +0000 (03:10 +0000)
Lib/test/test_old_mailbox.py

index 4b6a73599fd5fb53b99595dedb3d9023deed7dab..06e56a72c93ef06e490b0c6077591575bc94f576 100644 (file)
@@ -99,11 +99,11 @@ class MaildirTestCase(unittest.TestCase):
 
     def test_unix_mbox(self):
         ### should be better!
-        import email.Parser
+        import email.parser
         fname = self.createMessage("cur", True)
         n = 0
         for msg in mailbox.PortableUnixMailbox(open(fname),
-                                               email.Parser.Parser().parse):
+                                               email.parser.Parser().parse):
             n += 1
             self.assertEqual(msg["subject"], "Simple Test")
             self.assertEqual(len(str(msg)), len(FROM_)+len(DUMMY_MESSAGE))