From: Neal Norwitz Date: Thu, 30 Aug 2007 03:10:46 +0000 (+0000) Subject: Use the new name for the parser module. X-Git-Tag: v3.0a1~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2c440a1086e182796a52eeca1fe7c2baa441591d;p=thirdparty%2FPython%2Fcpython.git Use the new name for the parser module. --- diff --git a/Lib/test/test_old_mailbox.py b/Lib/test/test_old_mailbox.py index 4b6a73599fd5..06e56a72c93e 100644 --- a/Lib/test/test_old_mailbox.py +++ b/Lib/test/test_old_mailbox.py @@ -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))