diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-30 03:10:46 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-30 03:10:46 (GMT) |
commit | 2c440a1086e182796a52eeca1fe7c2baa441591d (patch) | |
tree | d603c8f9e60c006cebb0c7db5c23d08d2cc07388 /Lib/test/test_old_mailbox.py | |
parent | 315d845739709e225a90b9089d3f980b9cfde7e6 (diff) | |
download | cpython-2c440a1086e182796a52eeca1fe7c2baa441591d.zip cpython-2c440a1086e182796a52eeca1fe7c2baa441591d.tar.gz cpython-2c440a1086e182796a52eeca1fe7c2baa441591d.tar.bz2 |
Use the new name for the parser module.
Diffstat (limited to 'Lib/test/test_old_mailbox.py')
-rw-r--r-- | Lib/test/test_old_mailbox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_old_mailbox.py b/Lib/test/test_old_mailbox.py index 4b6a735..06e56a7 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)) |